"I truly enjoyed the grammar class" More Testimonials »

Apache Struts 2 Training

Delivery Options

Class Description

Class Overview

Struts 2, created through a joint effort of the WebWork and Struts communities, is an improved Struts framework for building Java EE web applications. This Struts 2 training class targets Java EE developers.

Class Goals

  • Learn the mechanics of the Struts 2 framework for building Java EE applications.
  • Learn to incorporate best practices for building applications with Struts 2.
  • Learn to work with Struts 2 actions.
  • Learn to use interceptors to add workflow.
  • Learn to build data-driven applications with Struts 2.
  • Learn to use tags to create views.
  • Learn to integrate Struts 2 with Spring and Hibernate/JPA.
  • Learn to extend Struts 2 with plug-ins.

Class Outline

  1. Struts 2: the modern web application framework
    1. Web applications: a quick study
    2. Frameworks for web applications
    3. The Struts 2 framework
  2. Saying hello to Struts 2
    1. Declarative architecture
    2. A quick hello
    3. HelloWorld using annotations
  3. Working with Struts 2 actions
    1. Introducing Struts 2 actions
    2. Packaging your actions
    3. Implementing actions
    4. Transferring data onto objects
    5. File uploading: a case study
  4. Adding workflow with interceptors
    1. Why intercept requests?
    2. Interceptors in action
    3. Surveying the built-in Struts 2 interceptors
    4. Declaring interceptors
    5. Building your own interceptor
  5. Data transfer: OGNL and type conversion
    1. Data transfer and type conversion: common tasks of the web application domain
    2. OGNL and Struts 2
    3. Built-in type converters
    4. Customizing type conversion
  6. Building a view: tags
    1. Getting started
    2. An overview of Struts tags
    3. Data tags
    4. Control tags
    5. Miscellaneous tags
    6. Using JSTL and other native tags
    7. A brief primer for the OGNL expression language
  7. UI component tags
    1. Why we need UI component tags
    2. Tags, templates, and themes
    3. UI Component tag reference
  8. Results in detail
    1. Life after the action
    2. Commonly used result types
    3. JSP alternatives
    4. Global results
  9. Integrating with Spring and Hibernate/JPA
    1. Why use Spring with Struts 2?
    2. Adding Spring to Struts 2
    3. Why use the Java Persistence API with Struts 2?
  10. Exploring the validation framework
    1. Getting familiar with the validation framework
    2. Wiring your actions for validation
    3. Writing a custom validator
    4. Validation framework advanced topics
  11. Understanding internationalization
    1. The Struts 2 framework and Java i18n
    2. A Struts 2 i18n demo
    3. Struts 2 i18n: the details
    4. Overriding the framework's default locale determination
  12. Extending Struts 2 with plug-ins
    1. Plug-in overview
    2. Common plug-ins
    3. Internal component system
    4. Writing a breadcrumb plug-in
  13. Best practices
    1. Setting up your environment
    2. Unit-testing your actions
    3. Maximizing reuse
    4. Advanced UI tag usage
  14. Migration from Struts Classic
    1. Translating Struts Classic knowledge
    2. Converting by piecemeal
  15. Advanced topics
    1. Advanced action usage
    2. Dynamic method invocation
    3. Using tokens to prevent duplicate form submits
    4. Displaying wait pages automatically
    5. A single action for CRUD operations
    6. Tiles and Struts 2

Class Materials

All students receive a course manual or book and all the class examples.

Students in private onsite classes will also receive:

  • Struts 2 in Action

Class Prerequisites

Experience in the following areas is required:

  • Basic Java
  • Java EE

Courses that can help you meet these prerequisites:

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Locations
Compare Us
Watch 3-minute Demo Video
of Live Online Training:
Learn the benefits of online training with Webucator
Webucator is a Registered Education Provider (R.E.P.) approved by PMI to issue professional development units (PDUs) for our training courses.
© Webucator, Inc. All rights reserved. | Toll Free: 1-877-932-8228 | From outside the USA: 315-849-2724| Fax: 315-849-2723