Building Java / JEE Web Applications with Servlets, JDBC, JNDI and More

Learn Core Java Web & JEE Development Skills to Build Robust, Scalable, Production Quality Web Applications



5 Days

Course Overview

Servlets and JavaServer Pages (JSPs) are key server-side Java technologies for building web applications. Servlets are programs that run on a web server; they can respond to client requests and create dynamic content.  Java Servlets allow flexible generation of dynamic content without the limitations of CGI-based applications or those created in a web server-specific manner. The JavaServer Pages (JSP) technology allows one to separate static from dynamic content while harnessing the power of Java Servlets.

Struts 2 is an open source, Model-View-Controller (MVC) framework developed by The Apache Software Foundation as part of its Jakarta project. Struts 2 is built on top of JSP, Servlets, and tag libraries.  Struts 2 addresses many major issues in using vanilla Servlets/JSP to build web systems.  It solves the problem of controller complexity by removing the workflow logic from the Servlets and directing workflow in an XML configuration file. Struts 2 improves on the limited form support in JSP by adding numerous capabilities to form processing including easy validation, easy error display, and the refilling of form input on form retries from the user’s previous entries.  It minimizes the complexity of JSP pages, by supplying a very extensive and flexible set of custom tag libraries for many of the standard operations needed in JSP pages.

Building Java EE / JEE Web Applications using Servlets/JSPs and Struts 2.0 is a five-day hands-on course geared for experienced Java developers new to Java EE / JEE, who need to get up and running with essential Struts 2 development skills. Created in collaboration with several leading JEE and Struts authors and industry experts, this comprehensive course teaches students how to design and program servlets and JSPs, including all the important concepts and hands on labs that will have you building working Struts 2 applications in no time flat.  This course provides core Struts 2 knowledge that can be used as the foundation for developing production-quality web applications to a basic level.

Course Objectives

Working in a hands-on environment, students will learn to:

  • Design and build web applications from both business and technical requirements
  • Build web interfaces with JSPs and Servlets, using the latest technologies in JEE.
  • Write maintainable web applications that separate HTML and Java
  • Understand the design and development of web applications using Servlets and JSPs
  • Make Servlets cooperate and share data
  • Store and process session information
  • Deal with concurrency issues
  • Understand and create JavaServer Pages (JSPs)
  • Link Servlets and JSPs
  • Use Java as a scripting language in JSPs
  • Use the built in JSP objects
  • Embed JavaBeans in a JSP, Use JavaBeans in a JSP
  • Use servlets and JSP together
  • Understand and work with JEE persistence options, including JDBC
  • Understand good design techniques including MVC, Command and State patterns
  • Understand the problems with vanilla servlets/JSP, and the motivation for the general Struts framework
  • Understand MVC and the Struts architecture
  • Understand the lessons learned from Struts 1.x and how they influenced Struts 2.0
  • Understand the Struts FilterDispatcher, actions, and results
  • Create & configure applications using Struts 2.0 and either XML configuration files or annotations
  • Define, implement, and test ActionSupport and Action classes
  • Use Struts for form processing
  • Handle errors and debug Struts applications
  • Utilize the Struts 2.0 validation framework
  • Understand and work with the value stack to bind objects to views and request processing 

Course Prerequisites

This is an intermediate level developer course, designed for experienced Java developers, new to JEE, that need to further extend their skills in web development and Struts. Attendees should have an extensive working knowledge in developing basic Java applications.

Course Agenda

Session:  JEE Application Architecture

  • Technical Overview of JEE
  • JEE Application Architectures (Web based)
  • Session: Web Applications

  • Understanding Web Applications
  • Configuring Web Applications
  • Session: Writing HTTP Servlets

  • Introduction to Servlets
  • Processing Input Data
  • Server-side Control
  • Client-side Control
  • Maintaining Client State - Sessions
  • Application and Session Events

    Session: Filters

  • Overview of Filters
  • Filtering the Request and Response

    Session: Writing JSP Pages

  • Introduction to JSP
  • Implicit Objects
  • Actions, JavaBeans, and Custom Tags
  • Session: Getting Started with Struts 2.0

  • Jakarta Struts Project
  • MVC and Struts
  • Review Filters, Servlets, JSP and Web Applications
  • Struts Architecture
  • Struts Components: FilterDispatcher, Interceptors, Actions, and Results
  • Session: Your First Struts Application

  • Struts 2.0 components
  • Configuring web.xml
  • Configuring structs.xml: package, results, exceptions, and actions
  • Action implementation
  • Adding basic view components

    Session: Validation and Interceptors

  • XWork validation framework
  • Implementing validation
  • Type conversion
  • Interceptor role
  • Using interceptors

    Session: Mapping the Model to the View

  • Review using Custom Tags
  • Introducing Struts Tags
  • Generic Tags
  • UI Tags
  • Themes and Templates
  • Tag Reference
  • Ajax Tags
  • ValueStack technology
  • OGNL for type conversion

    Session: Localization and I18n

  • Locales
  • Formatting Messages
  • Resource Bundles
  • Internationalization
  • Tags
  • I18n Interceptor

    Session: Putting It All Together

  • Create the Application
  • Actions
  • Searching
  • Prepopulating Forms
  • Validating forms
  • Showing and Editing Error Massages
  • Handling Exceptions
  • Add/Edit/Delete Listing

Course Materials

Each student will receive a course Student Guide, complete with course notes, code samples, software tutorials, diagrams and related reference materials and links. Our courses also include a Student Workbook, with step by step hands-on lab instructions and project files (as necessary) and solutions, clearly illustrated for users to complete hands-on work in class, and to revisit to review or refresh skills at any time.  Students will also receive the course set up files, project files (or code, if applicable) and solutions required for the hands-on work.

Raise the bar for advancing technology skills

Attend a Class!

Live scheduled classes are listed below or browse our full course catalog anytime

Special Offers

We regulary offer discounts for individuals, groups and corporate teams. Contact us

Custom Team Training

Check out custom training solutions planned around your unique needs and skills.

EveryCourse Extras

Exclusive materials, ongoing support and a free live course refresh with every class.

Mix, Match & Master!
2FOR1: Two Courses, One Price!

Enroll in *any* two public courses (for 2023 *OR* 2024 dates!) by December 31, for one price!  Learn something new, or share the promo!

Click for Details & Additional Offers

Learn. Explore. Advance!

Extend your training investment! Recorded sessions, free re-sits and after course support included with Every Course
Trivera MiniCamps
Gain the skills you need with less time in the classroom with our short course, live-online hands-on events
Trivera QuickSkills: Free Courses and Webinars
Training on us! Keep your skills current with free live events, courses & webinars
Trivera AfterCourse: Coaching and Support
Expert level after-training support to help organizations put new training skills into practice on the job

The voices of our customers speak volumes

Special Offers
Limited Offer for most courses.

SAVE 50%

Learn More