Home About Courses Schedule Services Webinars Contact Search

Core Struts 2.0 Development

SEE SCHEDULE

Duration: 3.0 days

Method: Instructor led, Hands-on workshops

Price: $1800.00

Course Code: ST1006



Audience

This an intermediate level Struts training course, designed for J2EE developers that need to further extend their skills in web development and Struts.

Description

Created in collaboration by several leading J2EE and Struts authors and industry experts, this intensive course will give you the skills to design and build scalable, secure, maintainable web applications - leveraging our extensive experience in the delivery of scalable enterprise applications with complex web interfaces based on J2EE technologies. This course provides core Struts 2.0 knowledge that can be used as the foundation for developing production-quality web applications.

Struts 2.0 is the second generation of the open source, Model-View-Controller (MVC) framework developed by The Apache Software Foundation as part of its Jakarta project. Struts 2.0 is built on top of a variety of components and technologies to provide tremendous flexibility and address many lifecycle issues. After reading the first J2EE Blueprints from Sun with their explanation of MVC and how to accomplish it with custom tags, Servlets, and JSP, one can clearly see that Struts 2.0 is a manifestation of Sun’s J2EE MVC vision that uses many of the more recent innovations in both Java and J2EE.

Struts 2.0 addresses many major issues by using vanilla POJOs, filters, and other components to build web systems. It solves the problem of controller complexity by removing the workflow logic from the code, and directing workflow in an XML configuration file. Struts 2.0 improves on the limited form support in JSP (and first generation the Struts 1.x framework) by adding numerous capabilities to form processing including easy validation, easy error display, and the refilling of form input on retries from a 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.

This course will get you up to speed with Struts 2.0 in a very short time. It includes all the important concepts, and hands on labs that will have you building working Struts 2.0 applications in no time flat.

Objectives

Upon successful completion of this course, the student will be able to:

  • 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, Struts 2.0 views, and resource bundles
  • Create & configure applications using Struts 2.0 and the struts.xml file
  • Define, implement, and test ActionSupport and Action classes
  • Use Struts for form processing
  • Handle errors and debug Struts applications
  • Utilize the Struts 2.0 XWork validation framework
  • Use the value stack to bind objects to a view
  • Use the Struts 2.0-related annotations

Prerequisites

Attendees should have an extensive working knowledge in developing J2EE applications.

Topics

  1. 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
  2. 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
  3. Validation and Interceptors
    • XWork validation framework
    • Implementing validation
    • Type conversion
    • Interceptor role
    • Using interceptors
  4. 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
  5. Localization and I18n
    • Locales
    • Formatting Messages
    • Resource Bundles
    • Internationalization
    • Tags
    • I18n Interceptor
  6. Putting It All Together
    • Create the Application
    • Actions
    • Searching
    • Prepopulating Forms
    • Validating forms
    • Showing and Editing Error Massages
    • Handling Exceptions
    • Add/Edit/Delete Listing
  7. Advanced Topics (Optional)
    • Action Chaining
    • Dependency Injection
    • Testing
    • Using Annotations
    • Performance Tuning
    • Plugins
    • Migration of Struts 1.x applications to Struts 2.x
  8. Working with the Tiles Custom Library (Optional)
    • Defining templates
    • Using put and insert
    • Advanced tile features (optional lesson)