Skip to main content

Instructor-led training

Java Web Programming Training in Morgan City, Louisiana

This two-day course teaches Java programmers how to build dynamic web applications using JavaServer Pages, Servlets and JavaBeans.

What you'll learn

This two-day course teaches Java programmers how to build dynamic web applications using JavaServer Pages, Servlets and JavaBeans. These technologies combine to form the presentation side of a J2EE web-based application. Students will implement a Model-View-Controller (MVC) architecture for their web applications. This course is current to the Servlet 3.0 specification and runs on Tomcat 7.0.

Private Training for Teams

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

Java Programming, HTML.

Course Outline

Web Applications and MVC
Web Applications
JSPs and Servlets
Model-View-Controller
Model 2 Architecture
The WAR File
web.xml
Building the WAR
Deploying the WAR

JavaServer Pages
Introduction to JSP
JSP Syntax
JSP Scripting Elements
Request and Response Implicit Objects
page Directive
Error Handling
The include Directive
include and forward Actions

Java Servlets
HTTP Requests
HttpServlet
Servlet Lifecycle
@WebServlet Annotation
RequestDispatcher
HttpSession
ServletContext
Servlet Filters
JSP vs. Servlet

JavaBeans
Rules
Properties
Properties and Forms
Data Access Objects
Resource Reference
Bean Scopes in Servlets
Bean Scopes in JSPs

JSP Expression Language
JSP Expression Language
Literals
Variables
The . and [ ] Operators
Other Operators
Implicit Objects

Introduction to JSTL
What is JSTL?
Core Tags – Conditionals
Core Tags – Iteration and Import
Variables, Output, and Exceptions
XML Manipulation Tags
Internationalization Tags
SQL Tags

Security
Concepts
Constraints
Roles
login-config
BASIC Authentication
FORM Authentication
Login and Error Pages

Appendix A – Tag Libraries
Custom Tags
Using Custom Tags
Defining Tags
Tags with Attributes
Fragments and Variables
Packaging Tag Files

Appendix B – Ant
What is Ant?
build.xml
Tasks
Properties and Property Files
Managing Files and Directories
Filesets
Specifying Paths
Miscellaneous Tasks

Where the difficulty lies: state, scope and separation of roles

The Java syntax is rarely the problem. The hard part is that a web application is a set of cooperating components, each with its own lifetime. The syllabus builds this up in layers.

  • Structure first. The course starts with the Model 2 form of MVC: a servlet as controller, a JSP as view, a JavaBean as model. It then covers packaging and deployment (the WAR file, web.xml, building and deploying the WAR). Many early failures come from a misplaced file or a wrong mapping, not from bad code.
  • Lifecycle and scope. The servlet lifecycle, HttpSession, ServletContext and the bean-scope topics for servlets and JSPs all ask the same question: how long does this object live, and who else can see it? A servlet instance serves many requests, so state kept in the wrong place can leak between users.
  • Forward versus include. The include directive, the include and forward actions, and RequestDispatcher look alike but behave differently. So do JSP scripting elements and the Expression Language with JSTL. A common misconception is that Java code in the page is the normal way to build a view. The syllabus moves from scripting elements to EL and JSTL so that logic stays out of the markup.
  • Declarative security. Constraints, roles, login-config, BASIC and FORM authentication are configured in XML rather than coded. Mistakes show up as access that is silently too open or too closed.

The appendices cover custom tags and tag files, and Ant for building the WAR. They suit teams that want reusable view components and a repeatable build.

Who it suits and how it fits a learning path

The course is general level and assumes working Java and basic HTML. It suits Java developers who maintain, support or extend existing servlet/JSP applications, and teams that need a shared vocabulary for MVC web code. The syllabus and description place it in the older Java EE generation of web technologies, and the version information for this course lists Java SE 7 and earlier, which is out of support. It therefore fits organizations that run or migrate systems of that kind. Teams on newer releases can ask for private training tailored to the versions they use through a training proposal.

The Java Programming learning guide shows how the other Java courses relate.

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.

  • Untangling a page-heavy application. A team might inherit JSPs that mix SQL, business rules and HTML. Using the course's topics, it could move request handling into a servlet, put data access behind DAOs and beans, and reduce each page to EL expressions and JSTL conditionals and iteration.
  • Protecting an administrative area. For example, a department might need only certain roles to reach its maintenance pages. Security constraints, roles and login-config with FORM authentication, plus custom login and error pages, express this in configuration. A servlet filter could add cross-cutting checks.
  • Standardizing the view and the build. A group maintaining several similar applications might package repeated page fragments as custom tag files, use the internationalization tags for message text, and use an Ant build.xml to produce the same WAR every time.

Using AI coding assistants with servlet and JSP code

AI coding assistants are useful for boilerplate: a servlet skeleton with doGet/doPost, a bean with properties, a JSTL loop over a list, an EL expression, or a first draft of an Ant target. They save typing and show the shape of a pattern.

They fail in predictable ways for these topics:

  • API generation mismatch. Suggestions may use package names, annotations or libraries from a different servlet generation than the one your container runs. The code compiles in one project and fails at deployment in another.
  • Scope and thread safety. Generated servlets often keep per-request data in instance fields, or put objects in application scope that should live in the request or session.
  • Output handling. Raw EL or scriptlet output can leave pages open to cross-site scripting, and string-built SQL invites injection.
  • Security configuration. A plausible but wrong url-pattern or role mapping can leave a path unprotected.
  • Dated style. Assistants may reproduce scriptlet-heavy pages instead of the EL/JSTL approach the course teaches.

To verify, deploy to the same container version you run in production. Test protected URLs as an unauthenticated user and as the wrong role. Submit markup characters into every form field. Review where each bean is stored and who can reach it.

Frequently asked questions

What level is this course?

General level, over two days. It is aimed at Java programmers who want to build or maintain web applications with servlets, JSPs and JavaBeans.

What do I need to know beforehand?

Java programming and HTML. You should be comfortable with classes, objects and exceptions, and be able to read basic HTML forms.

What does the course cover?

Model 2 MVC and WAR packaging; JSP syntax, directives and actions; servlets, filters, sessions and the servlet context; JavaBeans and DAOs; Expression Language; JSTL; declarative security; and appendices on custom tags and Ant.

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

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

Can the content be customized?

Private courses can be customized, including tailoring to the technology versions your organization uses, including current releases. Send details through a training proposal request.

Training locations

Java Web Programming training across the U.S. and beyond.

We provide private Java Web Programming training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Java Web Programming 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.