Skip to main content

Instructor-led training

Fast Track to Java EE 5 with Servlets, JSP & JDBC Training in Gary, Indiana

The course begins with a discussion of web application architecture.

What you'll learn

The course begins with a discussion of web application architecture. A major part of the course is spent on Servlets and JavaServer Pages (JSP) with special focus on using the JSTL. It then covers JDBC, Javaâ??s database access technology. The course concludes with an introduction to EJB and other important Java EE technologies. Throughout the course, students will create code for a online store. Students will learn not only specific topics and APIs but also how to fit the pieces together into a complete application.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Gary, Indiana or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

A working knowledge of Java.

Course Outline

Java EE Introduction
Java EE Overview
Java EE Technologies
Java EE Architecture
MVC
 
JEE Web App Review
Web App Overview
Servlet, Servlet Scopes
JSP Overview
Custom Tags, Tag Libraries, taglib directive
 
Getting started with JSF
JSF Overview
Purpose and Goals
JSF Architecture
JSF Views - facelets and JSP Pages
Managed Beans, Controler, configuration
Your first JSF Application - setup, configuration, deployment
 
Managed Beans
Defining a Managed Bean (annotation-based and using faces-config.xm)
Managed Bean Lifecycle
Managed Beans and JSF Forms
Managed Beans as Value Binding Expressions
JSF Expression Language (EL) & the Unified EL (JSF 1.2)
Value/Method Binding Expressions
JSF Navigation
 
Facelets and JSF Tag Libraries
Facelet Introduction and Life Cycle
JSF Tag Library Overview
JSF Core tags <f:tagName>
JSF HTML tags <h:tagName>
Using the Most Common Form controls – TextFields, Buttons, Links …
 
Additional JSF Capability
h:dataTable
Validation and Conversion
Templates
Servlets and JSP with JSP Standard Tag Library (JSTL)
 
Web Application Basics
How the Web works, Thin Clients,  TCP/IP
HTTP overview, Brief HTML review
Overview of J2EE
Web Applications - Structure and Contents
Servlet Basics and Capabilities
Basics of Writing a Servlet
Labs:
Setup development environment and server; Create a simple web application
Create a Simple Servlet
 
Servlet API
HTML Forms Review
HTTP Review: Request-response, headers, GET, POST
Overview: How Servlets Work
Servlet Lifecycle: init(), service(), destroy()
API: Servlet, ServletConfig, ServletRequest, ServletResponse, GenericServlet,
Requests and Responses - Using ServletRequest and ServletResponse
HTTP Servlets: HttpServlet, HttpServletRequest, HttpServletResponse
Accessing Parameters
More About web.xml
Labs:
Using Client Input, Retrieving parameters
 
Additional Servlet Capabilities
Working with HttpServletResponse
Status/Errors
Response Headers
MIME Types
Initialization
Overview
Using ServletConfig and ServletContext
Init Parameters - Servlet and Web App
Error Handling: Error Pages and Their Configuration
Labs:
Using Model Classes, Generating Simple Output
 
JavaServer Pages
Basics and Overview
JSP architecture
JSP tags and JSP expressions
Fixed Template Data
Lifecycle of a JSP
Model View Controller (MVC)
Overvie
Java EE Model 2 Architecture : Servlet Controllers, JSP Views, JavaBeans Glue
Servlets as Controllers
Using RequestDispatcher
Forwarding and Including
Data Sharing in a Web App
Object scopes or "buckets"
Using JavaBeans to Hold Data
Using the Scope Objects - get/set/remove Attributes
Request, application, session and page scope
JSP Expression Language (EL) and Data Access
JSP EL Overview
JavaBeans and the EL
Predefined JSP EL implicit objects (pageContext, param, header, scope objects)
<jsp:useBean>, <jsp:getProperty>, <jsp:setProperty>
jsp:include, jsp:forward, the page Directive
Labs:
Create a Simple JSP Page
Put Data on a Scope and Forward to a JSP
Use the JSP Expression Language
 
Using Custom Tags
Custom tags overview
Reducing JSP complexity
Tag Libraries
Overview and TLD (Tag Library Descriptor)
taglib Directive - Using a Tag Library
JSTL
Overview
c:out, c:forEach
c:url, c:param
Labs:
Use c:forEach for Iteration
Working with Links and c:url
 
HTTP Session Tracking
HTTP Session Overview
HTTP as a stateless protocol
Hidden form fields
Cookies
Overview and Servlet API
Using Cookies, Persistent and Session Cookies
Issues
Sessions
Servlet/JSP Session Support, HttpSession
Using Sessions - Putting Data in, Retrieving Data From
How Sessions Work
Labs:
Storing and Using Session Data
Session 8: More JSP Capabilities
Error Pages
Error Pages and Exception Handling
The implicit exception Object
JSP 2.0+ Error Handling and errorData Object
Directives (page, include, others)
JSPs as XML Documents
Scriptlets - Overview and Usage
Labs:
Using Error Pages
{optional} Using Scriptlets
 
More JSTL and EL
More About the JSTL
Core, Formatting, SQL, XML, Functions Libraries
Custom Tag Architecture and Tag Library Structure
c:if, c:choose, c:import
Formatting: formatNumber, formatDate, Resource Bundles
Using Common Tags
XML Action Example
More About the JSP EL
Syntax, Identifiers, Literals, Operators
Implicit Objects
The pageContext in Detail
Type Coercion
String concatenation
Using Common Tags
c:if, c:choose
c:set
fmt:formatDate, fmt:formatNumber
Labs:
Using c:if, c:choose, c:when and c:otherwise to customize output
[Optional]: Using the Function Library
JSTL Format Tags
 
Security
J2EE Security Overview
Role Based Security
Declarative Security
Web Authentication - Basic, Form-Based, Digest, HTTPS Client
Using Basic Authentication
Using Form-Based Authentication
Programmatic Security - HttpServletRequest, Retrieving Roles
Labs:
Securing a Web App, Setting Up and Using a Security Domain
 
Additional Topics
Design Issues
Dividing Responsibilities Between Servlets/JSP
Network Overhead
Scalaibility - Clustering, Serving Static Content
Other Guidelines - Using the Technology Well
Custom Tags Using Tag Files
Overview and Writing Tag Files
Tag Attributes
The tag Directive
Servlet Filter overview
Filtering examples, lifecycle, & filter chains
Filter API, Modifying a request, Modifying a response
Java ServerFaces (JSF) Overview
Advanced MVC – JSF overview
JSF Components
Process Flow
Advantages and Disadvantages
JDBC
 
JDBC Introduction
Relational Database and JDBC Overview
Overview, Table Relationships, Web Based Data Access, JDBC Characteristics
JDBC Architecture, JDBC API Overview
DriverManager, JDBC Drivers
Naming databases with JDBC URLs
Connecting to a database
Connection interface, Establishing a connection
DataBaseMetaData
Handling Database Exceptions
 
Data Access with JDBC
DAO – Data Access Objects, O-R Mapping, Value Objects
Processing Database Data
Executing statements, precompiled statements and stored procedures
Processing ResultSets,
Dealing with Null data
Updating, inserting, retrieving data
Controlling Transactions
JDBC Driver Types
Labs:
Lab series creating DAO using JBDC
 
Advanced Topics
Java Persistence API Overview
Advanced JDBC Features
Batch Updates, Srollable Result Sets, Rowsets, User Defined Types, BLOBS, CLOBS
Database Integration and Additional Technologies
 
Java EE Database Integration
Environment Naming Context (ENC) and Resource Injection
JNDI Overview and the ENC
Connecting servlets to a database via DataSource
Connection Pooling
 
Additional Topics
EJB
Overview of EJB
High-level EJB architecture
Roles within EJB
Client view of a session bean
JNDI (Java Naming and Directory Interface)
Remote and Home Interfaces
Writing an EJB client
XML and Web Services Overview
XML and Web Services
JAX-WS Web Services Overview
Design Considerations: Web Design, System Architecture, Scalability, Clustering
Labs
Accessing a database from a servlet
Other Optional Labs (Depends on Platform Support)

What makes this material hard to master

The Java is rarely the obstacle. The difficulty is that a web application is spread across a container, several object scopes, configuration files and a database, and the pieces only work when they agree. The syllabus builds up in a deliberate order.

  • The request cycle first. HTTP request-response, headers, GET and POST, then the servlet lifecycle (init(), service(), destroy()), HttpServletRequest/HttpServletResponse, parameters and web.xml.
  • Separating responsibilities. The Model 2 pattern has servlets as controllers, JSPs as views and JavaBeans as glue, connected with RequestDispatcher forward and include. The common misconception is that JSP is just HTML with Java in it. Scriptlets are covered, but the course steers toward the JSP Expression Language, JSTL (c:forEach, c:if, c:choose, fmt:formatDate) and custom tags.
  • State. HTTP is stateless, so the course covers hidden fields, cookies and HttpSession. Request, session, application and page scope are easy to confuse, and the wrong choice causes bugs that show up only under concurrent use.
  • Security. Declarative role-based security, Basic and Form-Based authentication, and programmatic role checks each live in a different place (descriptor, container security domain, code).
  • Data access. JDBC covers drivers, connections, prepared statements, stored procedures, ResultSet processing, null handling, transactions and DAOs. It then moves to DataSource, JNDI and connection pooling, which is where application code meets container configuration.
  • Wider platform. JSF (managed beans, facelets, navigation, validation and conversion, h:dataTable) and an EJB overview with session-bean clients and JNDI lookup. Both are introductions to how the pieces fit, not deep dives.

Who it suits and where it fits

This is an introductory, five-day course for developers who already work in Java and need to build or maintain server-side web applications on the Java EE platform. It suits teams that support existing servlet/JSP/JDBC systems or are migrating them. The syllabus is built around Java SE 7 and earlier, which is out of support on Oracle's roadmap. The course is therefore best framed as training for maintaining and understanding existing applications. Organizations working with newer Java releases can ask about customized private training tailored to the versions they run.

Before: a working knowledge of Java is the stated prerequisite. If your team's Java is rusty or comes from another language, Fast Track to Java for OO Developers covers the language and object-oriented foundations this course assumes.

After: once servlets, JDBC and the container model are familiar, Advanced Java Programming is a natural way to deepen the language and library skills that larger applications depend on.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Maintaining a legacy catalog application. A team inherits a JSP site full of scriptlets. Using the course's material on EL, JSTL, custom tags and tag files, they could move display logic out of the pages and into controller servlets and beans.
  • Fixing session and login problems. A team might see users losing cart contents or reaching pages they should not. The session-tracking, scope, filter and security topics (HttpSession, cookies, form-based authentication, roles) give them a framework for finding whether the fault is in scope choice, session handling or the security configuration.
  • Cleaning up database access. An application opens connections inside servlets. A team could apply the DAO pattern, prepared statements, transaction control and a container-managed DataSource with connection pooling to centralize access and make it testable.

AI coding assistants with these topics

Where they help. AI coding assistants can draft boilerplate such as a servlet skeleton, a web.xml mapping, a DAO with the usual try/finally structure, or JSTL loops over a bean collection. They can also explain unfamiliar legacy JSP code.

Where they fail. Output often mixes eras: annotations or APIs from newer Jakarta releases in a project that targets an older container, or scriptlet-heavy pages that defeat the separation of concerns taught here. Typical risks for these topics:

  • SQL built by string concatenation instead of prepared statements (injection), and connections, statements or result sets that are not closed.
  • Unescaped output in JSP, where c:out or equivalent escaping should be used (cross-site scripting).
  • Shared mutable state in servlet instance fields or in application scope, which is unsafe because one servlet instance serves many threads.
  • Security rules that look right but are not enforced by the container's declarative configuration.

How to verify. Deploy to the same container and Java version you run in production. Test with concurrent sessions and with malicious input in parameters. Review every query for parameter binding. Confirm access restrictions by requesting protected URLs without credentials and with the wrong role.

Frequently asked questions

What level is this course?

It is introductory to Java EE web development but assumes you can already write Java. It covers servlets, JSP with the JSTL, JDBC, and overviews of JSF and EJB.

What do I need to know beforehand?

A working knowledge of Java. Prior web development experience is helpful but the syllabus starts with how the web and HTTP work.

Which Java version does the course use?

The course content is built around Java SE 7 and earlier, which is out of support. It suits teams that build, maintain or migrate existing applications. For newer releases, private training can be tailored to the versions your organization uses.

Is private onsite or live online delivery available, and can the content be customized?

Yes. HSG delivers private training for organizations at the client's location or live online, and content can be customized, for example to emphasize servlets and JSP, JDBC and DAOs, or security. You can request a proposal through the link on this page.

Training locations

Fast Track to Java EE 5 with Servlets, JSP & JDBC training across the U.S. and beyond.

We provide private Fast Track to Java EE 5 with Servlets, JSP & JDBC training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Fast Track to Java EE 5 with Servlets, JSP & JDBC training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.