Skip to main content

Instructor-led training

Developing Java EE Web Applications (JEE6/JEE7), plus JPA and REST Training in Flint, Michigan

Java Enterprise Edition (JEE) is a powerful platform for building web and database-driven applications.

What you'll learn

Java Enterprise Edition (JEE) is a powerful platform for building web and database-driven applications. This course provides the information you need to design and build your own data-driven web applications. You'll learn the details of the core JEE Web and database technologies and how to leverage the strengths of each. You'll also be introduced to other important web-based technologies such as creating REST services with JEE. 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 Flint, Michigan 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

Students must have a solid understanding of Java and preferably at least a year of software development experience.

Course Outline

Session 1: Java EE Introduction
Java EE Overview and Technologies
JEE Architecture Choices
Java Web App Introduction
 
Session 2: Servlet Basics
Servlet Basics and Capabilities
Basics of Writing a Servlet
HTML Forms Review
HTTP Review: Request-response, headers, GET, POST
Overview: How Servlets Work
Servlet Lifecycle and API - Servlet, HttpServlet, @Webservlet
Requests and Responses - HttpServletRequest and HttpServletResponse
Accessing Parameters
web.xml
 
Session 3: Additional Servlet Capabilities
Working with HttpServletResponse (Errors, Headers, MIME types)
Initialization
Overview
Using ServletConfig and ServletContext
Init Parameters - Servlet and Web App
Error Handling: Error Pages and Their Configuration
 
Session 4: JavaServer Pages
Basics and Overview
JSP architecture
JSP tags and JSP expressions
Fixed Template Data
Lifecycle of a JSP
Model View Controller (MVC)
Overview
Java EE Model 2 Architecture
Servlets as Controllers, 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
JSP Expressions, and Accessing Data
Predefined JSP EL implicit objects (pageContext, param, header, scope objects)
pageContext in Detail
jsp:include, jsp:forward, the page Directive
JSP Error Pages
 
Session 5: Using Custom Tags
Custom tags overview
Tag Libraries Overview
taglib Directive - Using a Tag Library
JSTL
Overview
c:out, c:forEach
c:url, c:param
More about JSTL
Other Useful Core Tags< - c:if, c:choose
Formatting: formatNumber, formatDate, Resource Bundles
 
Session 6: HTTP Session Tracking
HTTP and Client State
Cookies - Overview, Servlet Access, Usage, Issues
Sessions
Servlet/JSP Session Support, HttpSession
Using Sessions - Putting Data in, Retrieving Data From
How Sessions Work
 
Session 7: Web Security
JEE 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
 
Session 8: Additional Servlet Capabilities
Custom Tags Using Tag Files - Overview, Writing and Using Tag Files, Tag Attributes
Servlet Filter overview - Example and lifecycle
WebSocket Overview
 
Session 9: JDBC Introduction and Architecture
Relational Database and JDBC Overview
JDBC Architecture, JDBC API Overview
Connecting to a database
Working with JDBC - Executing Statements and Processing Results
 
Session 10: Resource Integration
DataSources and Connection/Statement Pooling
Resource Injection, @Resource, and JNDI
CDI and Dependency Injection
 
Session 11: Introduction to JPA
JPA Architecture and Programming View
Entity Classes and Annotations
Mapping an Entity Class
EntityManagerFactory and EntityManager
Working with JPA (Find by primary key and inserts)
Integrating JPA with the Web Tier
 
Session 12: JPA Advanced Topics
Entity Lifecycle
Relationships
Issues with Relationships (Lazy Load and Web Apps)
 
Session 13: Introduction to REST
Overview and Principles
REST Characteristics
Resources and Operations
REST Principles
Requests and Responses
REST APIs
URI Templates
GET, POST, PUT, DELETE
Safe and Idempotent Methods
 
Session 14: Introduction to JAX-RS
APIs and Implementations
JAX-RS Overview, Annotations
JAX-RS Implementations
Runtime Environment
Application Server, Servlet-Only Container
Architectural and Implementation Perspectives
Configuring the Application
Applications, Resources, and Providers
JAX-RS Applications
Resource Classes and @Path
Provider Classes and @Provider
Default Lifecycles
The Application Class and rest-path
Ajax-JavaScript Clients
Overview
Classic vs. Ajax Interactions
Working with Ajax-JavaScript

What makes this material hard to master

The individual APIs are small. The difficulty is that a Java EE web application is several layers that share state and are wired together by the container. Many mistakes only show up at runtime, in the wrong scope or the wrong thread of execution.

The syllabus builds the layers in order:

  • Servlet foundation (sessions 2-3). HTTP request-response, headers, GET and POST, the servlet lifecycle, HttpServletRequest/HttpServletResponse, ServletConfig and ServletContext, and error pages. Everything later sits on this lifecycle.
  • Views and MVC (sessions 4-5, 8). JSP, Model 2 with servlets as controllers, RequestDispatcher forward and include, Expression Language, JSTL, and tag files. A common misconception is that JSP is where logic belongs. Model 2 exists to prevent that.
  • State and scopes (sessions 4 and 6). Page, request, session and application scope, HttpSession, and cookies. Putting data in the wrong scope is a classic source of bugs that appear only under concurrent users.
  • Security (session 7). Declarative versus programmatic security, roles, and Basic, Form, Digest and HTTPS client authentication. Developers often assume that authenticating a user also authorizes each resource. The two are configured separately.
  • Data access (sessions 9-12). JDBC, then DataSources and pooling, @Resource, JNDI, and CDI, then JPA entities, EntityManager, the entity lifecycle and relationships. The syllabus calls out lazy loading in web apps because an entity that works in a test can fail once it is rendered after the persistence context has closed.
  • REST (sessions 13-14). Resources, URI templates, safe and idempotent methods, then JAX-RS with @Path, @Provider, the Application class, and Ajax clients. Learners tend to treat REST as "servlets returning data" and miss the resource and method semantics.

Who it suits and what to take around it

The course is general level. It suits developers with a solid grasp of Java, ideally with a year or more of development experience, who need to build or maintain database-driven web applications on the Java EE platform. It also suits teams that must understand an existing servlet/JSP/JPA codebase before changing it.

If your goal is a deeper treatment of web services after this course, Developing RESTful Services Using Java is a natural next step because it focuses on RESTful design in more depth than the two REST sessions here.

This syllabus covers JPA but not enterprise beans. Teams that need a business tier with transactions can follow it with Fast Track to EJB 3.2 (JEE 7 level) and JPA2.

Teams planning to move toward a container-managed framework outside the Java EE programming model may find Introduction to Spring 5, Spring Boot, and Spring REST a useful comparison. The servlet, session and JPA concepts carry over directly.

Related offerings are collected in the Java Enterprise Edition courses and learning guide.

Illustrative applications of these topics

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 servlet/JSP application. For example, a team inherits a catalog site in which JSPs contain scriptlet logic and shopping-cart data lives in the wrong scope. The Model 2 pattern, scope objects, EL and JSTL give them a way to move logic into controllers and clean up the views.
  • Protecting an internal tool. A team might need role-based access to administrative pages. Declarative security in web.xml, form-based authentication, and programmatic role checks from HttpServletRequest map directly to that need. A servlet filter can add cross-cutting behavior.
  • Replacing hand-written JDBC. For example, an application opens connections in each servlet. Moving to a pooled DataSource obtained through JNDI or @Resource, then mapping tables to JPA entities, reduces boilerplate. The lazy-load material shows what to watch for when relationships are rendered in the web tier.
  • Exposing existing data as a service. A team might publish product data through JAX-RS resource classes with URI templates and GET, POST, PUT and DELETE, consumed by an Ajax-JavaScript page.

AI coding assistants with these topics

AI coding assistants are useful for boilerplate here: a servlet skeleton, a JPA entity with annotations, a JAX-RS resource class, or a JSTL loop over a list. They can also explain unfamiliar legacy JSP or web.xml configuration.

They are weaker where correctness depends on the runtime environment:

  • Platform mismatch. Generated code may mix annotations, package names or configuration styles from different platform generations, or from other frameworks. Check imports and descriptors against the target server.
  • Scope and thread safety. Servlets are shared across requests. Assistants often store request-specific data in instance fields or the application scope.
  • Security. Watch for SQL built by string concatenation in JDBC code, unescaped output in JSP (compare c:out), and authentication configured without matching authorization constraints.
  • JPA behavior. Generated relationship mappings can trigger lazy-load failures or extra queries when the view renders them.
  • REST semantics. A PUT or DELETE that is not idempotent, or a GET with side effects, may compile and run but violate the contract.

To verify, run the code on the actual application server, test with more than one concurrent session, review generated SQL, and attempt access as each role. Treat assistant output as a draft to be reviewed against the concepts this course teaches.

Frequently asked questions

What level is this course and what do I need beforehand?

It is general level over five days. You should have a solid understanding of Java and preferably at least a year of software development experience. No prior servlet, JSP or JPA knowledge is listed as required.

What does the course cover?

Servlets, JSP with EL and JSTL, MVC, session tracking, web security, JDBC, DataSources, JNDI and CDI, JPA basics and relationships, and REST with JAX-RS. Students build code for an online store throughout.

Does it include enterprise beans or a JSF user interface?

No. The syllabus builds the web tier on servlets and JSP and covers persistence with JPA. Related HSG courses address other topics and are listed in the Java Enterprise Edition learning guide.

Can this be delivered privately for our team?

Yes. HSG delivers private training onsite at your location or live online.

Can the content be customized?

Private training can be tailored to the technology versions your organization uses, including current releases, and to your team's priorities. You can request a training proposal to discuss it.

Training locations

Developing Java EE Web Applications (JEE6/JEE7), plus JPA and REST training across the U.S. and beyond.

We provide private Developing Java EE Web Applications (JEE6/JEE7), plus JPA and REST training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Developing Java EE Web Applications (JEE6/JEE7), plus JPA and REST 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.