Skip to main content

Instructor-led training

Fast Track to Servlets/JSP on the JBoss Application Server Training in Angleton, Texas

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.

Private Training for Teams

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

Experience programming in Java.

Course Outline

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
Setting up and running JBoss AS
 
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)
Overview
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
 
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
 
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

What makes servlets and JSP hard to master

The Java is rarely the obstacle. The difficulty is that the web container owns the control flow: it creates servlets, calls init(), service() and destroy(), and maps requests through web.xml. Many mistakes only show up at deployment or under concurrent requests.

  • Lifecycle and sharing. The syllabus covers the servlet lifecycle, ServletConfig and ServletContext. A common misconception is that each request gets its own servlet. In practice one instance serves many requests, so instance fields are shared state.
  • Scopes. Data moves between components through page, request, session and application scope using get/set/remove attribute calls. Choosing the wrong "bucket" causes data leaks or lost data.
  • Model 2 MVC. Servlet controllers, JavaBeans and JSP views, joined with RequestDispatcher forward and include. Learners tend to put logic in the JSP, which is why the course covers dividing responsibilities between servlets and JSP.
  • EL and JSTL. The Expression Language looks simple, but identifiers, implicit objects, pageContext and type coercion have rules of their own. Tags such as c:forEach, c:choose, fmt:formatDate and custom tags (TLDs, tag files) replace scriptlets.
  • State and security. HTTP is stateless, so the course moves from hidden fields to cookies to HttpSession. It then covers declarative security (roles, Basic, Form-Based, Digest and HTTPS client authentication) alongside programmatic role checks.

The order matters: servlets and HTTP first, then JSP, then MVC and scopes, then EL/JSTL, sessions, error pages, security, and finally filters and a JSF overview.

Who it suits and what to take around it

This is an introductory course for developers who already program in Java but have not built container-based web applications. It suits teams that build, maintain or migrate servlet/JSP applications. The labs use JBoss AS for deployment and for a security domain. The syllabus names Java SE 7 and earlier, which Oracle lists as out of support. Organizations on newer Java releases or server versions can request a training proposal for private training tailored to the versions they run.

For next steps, the business-tier layer sits behind the web tier: Fast Track to EJB 3.0 Using JBoss follows naturally once you can route requests and keep state in a web application. If the application will also expose HTTP APIs, Programming REST Web Services with JAX-RS 2.0 builds on the HTTP and request/response concepts introduced 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.

  • Form-driven workflow. A team might build an order-entry flow. A servlet controller reads parameters, populates a JavaBean, places it in request scope and forwards to a JSP that renders it with EL and c:forEach. This draws on parameter access, RequestDispatcher, scopes and JSTL.
  • Securing an internal admin area. A team might restrict pages by role using form-based authentication and a security domain on the server. It might then use programmatic role checks to hide individual actions. This draws on declarative and programmatic security and HttpServletRequest role retrieval.
  • Cleaning up an older JSP code base. A maintenance team might replace scriptlets with EL, JSTL and tag files. It might add error pages and a servlet filter for cross-cutting behavior. This draws on the scriptlet, error page, tag file and filter chain topics.

AI coding assistants with servlets and JSP

AI coding assistants are useful for boilerplate: servlet skeletons, web.xml mappings, JavaBeans, JSTL loops and first drafts of tag files. They also explain unfamiliar EL expressions in existing pages.

They tend to fail in areas this course emphasizes:

  • Concurrency. Generated servlets may keep request data in instance fields, which is unsafe because one instance serves many requests.
  • Version fit. Suggestions may mix APIs, package names or configuration styles from different eras, or rely on features your container version does not provide. Server-specific setup such as a security domain is especially error-prone.
  • Output and session handling. Generated code may print user input directly instead of escaping it, or put too much in the session.
  • Security configuration. A plausible-looking web.xml constraint can leave URLs unprotected.

To verify, deploy to your target server and test with each role and with an unauthenticated user. Submit markup in form fields and check how it is rendered. Check scope choices by hand, and run concurrent requests against any servlet that holds state. Read the server log for deployment warnings.

Frequently asked questions

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

It is introductory to web development but assumes experience programming in Java. You do not need prior servlet, JSP or application server experience.

What does it cover?

Servlet basics and lifecycle, HTTP requests and responses, JSP and the Expression Language, Model 2 MVC with RequestDispatcher, JSTL and custom tags, cookies and HttpSession, error pages, declarative and programmatic security, tag files, servlet filters and a JSF overview. Labs use JBoss AS.

Is JSF covered in depth?

No. The syllabus gives JSF an overview only: components, process flow, and advantages and disadvantages.

Can this be delivered privately onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized?

Yes. Private training can be tailored to the technology versions and topics an organization uses. Use the training proposal request to describe your environment.

Training locations

Fast Track to Servlets/JSP on the JBoss Application Server training across the U.S. and beyond.

We provide private Fast Track to Servlets/JSP on the JBoss Application Server training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Fast Track to Servlets/JSP on the JBoss Application Server 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.