Skip to main content

Instructor-led training

Fast Track to Servlets/JSP Using Rational Application Developer (RAD) Training in Marquette, Michigan

This course is a comprehensive tutorial in the design and programming of Java Web applications using servlets and JSP.

What you'll learn

This course is a comprehensive tutorial in the design and programming of Java Web applications using servlets and JSP. It starts with Web application architecture, usage, and deployment. It teaches about the capabilities of servlets, servlet architecture, and session management, JSP structure and syntax, and good design techniques for using them. Extensive coverage is included on how to efficiently use the JSP Expression Language (EL), custom tags, and the JSTL library. The course is current with the latest releases of the specification, and uses the latest capabilities to write Web applications in the most efficient way possible. This includes the use of the JSP Expression Language directly in JSP 2.0+ Web pages, an overview of creating custom tags with tag files, and other new capabilities that make the framework much more user friendly. The complete course will give you excellent experience on how to build robust and capable Web applications using the latest features of the Java EE Web container. All labs are done using the RAD Development Environment, and the lab instructions include detailed directions on using RAD and the RAD wizards and tools.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Marquette, 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

Suitable for programmers with some previous experience in working with Java and Object-Oriented (OO) programming.

Course Outline

Session 1: 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
 
Session 2: 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
 
Session 3: 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
 
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)
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: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
 
Session 5: 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
 
Session 6: 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 7: 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
 
Session 8: 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
 
Session 9: 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
 
Session 10: 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

What makes servlets and JSP hard to master

The Java is rarely the obstacle. The difficulty is that the web container, not your code, controls the program flow. It creates servlets, calls init(), service() and destroy(), and decides when a JSP is compiled and when a session expires. The syllabus builds up in a deliberate order.

  • HTTP first (sessions 1-2). The request-response cycle, headers, GET versus POST, and HttpServletRequest/HttpServletResponse. Later problems with parameters, status codes and MIME types usually trace back to this layer.
  • Scopes and state (sessions 4 and 6). Request, session, application and page scope are easy to confuse. HTTP is stateless, so the course moves from hidden fields to cookies to HttpSession. A common mistake is putting per-user data in application scope, or too much in the session.
  • Separating logic from presentation (sessions 4-5, 8). Model 2 uses servlet controllers, JSP views and JavaBeans. The EL, JSTL and custom tags with TLDs are the alternative to scriptlets, which the syllabus treats as optional. A frequent misconception is that JSP is just HTML with embedded Java, when it is compiled into a servlet.
  • Configuration and security (sessions 3, 7, 9). web.xml, error pages, and declarative role-based security with basic and form-based authentication. Failures here often show up as silent 404s or 403s rather than stack traces.

Session 10 adds filters, tag files, design guidelines such as network overhead and clustering, and a short JSF overview.

Who it suits and where it fits in a learning path

This is an introductory, three-day course for programmers who already have some Java and object-oriented experience. No prior web development is assumed, since it starts with how the Web works and HTTP. The labs are done in the Rational Application Developer (RAD) IDE, so it suits teams that use that tool for building or maintaining Java EE web applications. The course is built on Java SE 7 and earlier, which is out of support, so it fits organizations maintaining or migrating existing applications. Organizations on newer Java releases can ask for a customized private training proposal.

Before: solid core Java, including exceptions, collections and JavaBeans conventions. The Java Programming courses and learning guide lays out the options.

After: session 10 only introduces JSF, so a team moving to component-based UIs can continue with Fast Track to JavaServer Faces (JSF) using RAD, which covers it in depth in the same tooling. A team exposing data to other systems might look at Developing RESTful Services Using Java, which builds on the HTTP and servlet fundamentals taught here.

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 an internal request portal. A team might inherit pages full of scriptlets. The Model 2 pattern (a servlet controller using RequestDispatcher to forward to a JSP view, with a JavaBean in request scope) and the EL with c:forEach and c:if show how to move logic out of the page without changing behavior.
  • Adding login to an existing app. A team might need role-based access to an admin area. Declarative security in web.xml, form-based authentication and programmatic role checks with HttpServletRequest cover this, along with the question of when to use each.
  • Cross-cutting behavior and error handling. A team might want request logging or response modification on every call, plus consistent error pages. A servlet filter in a filter chain and configured error pages are the tools the course introduces for this.

Using AI coding assistants with servlets and JSP

Where they help: AI coding assistants can draft a servlet skeleton, a web.xml mapping, a JSTL loop over a bean list, or a first pass at converting scriptlets to EL. They are also useful for explaining an unfamiliar legacy JSP.

Where they fail:

  • They may generate code for a different platform generation, such as annotation-based mappings or package names that do not match the container and Java level your project uses.
  • They often put logic back into scriptlets, or place data in the wrong scope, which causes cross-user data leaks in application scope.
  • Output escaping and session handling are easy to get subtly wrong, creating injection or session-related security problems. Security configuration is container-specific, so generated role and realm setup often does not work as written.

How to verify: run the code in the target container. Test with two browser sessions to catch scope mistakes. Submit markup in form fields and confirm it is escaped on output. Request protected URLs without logging in, and with the wrong role. Check that error pages fire for both servlet and JSP exceptions. Compare any generated configuration against the Java and Java EE levels your project actually uses.

Frequently asked questions

What level is this course?

It is introductory. It assumes Java and object-oriented programming experience but no prior web development, and starts with how the Web and HTTP work.

What should I know before attending?

Some previous experience with Java and object-oriented programming. Basic HTML familiarity helps, although the syllabus includes a brief HTML and forms review.

What does the course cover?

Servlet architecture and lifecycle, the request and response APIs, JSP structure, Model 2 MVC, the Expression Language, JSTL and custom tags, session tracking, error handling, declarative and programmatic security, filters and tag files. JSF is covered as an overview only. Labs use the RAD environment.

Can this be delivered privately for our team, onsite or online?

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

Can the content be customized?

Private training can be customized, including tailoring to the technology versions your organization uses. You can describe your needs through the training proposal request.

Training locations

Fast Track to Servlets/JSP Using Rational Application Developer (RAD) training across the U.S. and beyond.

We provide private Fast Track to Servlets/JSP Using Rational Application Developer (RAD) training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Fast Track to Servlets/JSP Using Rational Application Developer (RAD) 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.