Courses
Oracle Courses
Symantec Courses

TT-6242 --- Mastering Struts 2.0 Developer's Workshop

Overview

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.

Objectives

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. Struts 2.0 is powerful, very flexible, and easily extended. This course reflects those traits as it highly customizable to allow you, the client, to build a course that fits your needs. For example, there are selectable, optional modules on how to migrate existing Struts 1.x applications to Struts 2; on the power and extensibility of handling data on the server side; on various options for extending Struts 2, including with Tiles; on how to perform complicated validation within Struts 2; and on various advanced topics such as best practices and performance. Created in collaboration with several leading J2EE and Struts authors and industry experts, Trivera Technologies Mastering Struts 2.0 Developer’s Workshop is a lab-intensive, hands-on programming course that will provide students with the skills required to design and build scalable, secure, maintainable web applications - leveraging our team’s extensive experience in the delivery of scalable enterprise applications with complex web interfaces based on J2EE technologies.

PreRequisites

.

Who Can Benefit

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

Duration

5 Days

Course Content

Mastering Struts 2.0 Developer's Workshop  (TT-6242) Content Details

 
 
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
  • Review using Custom Tags
  • Introducing Struts Tags
  • Themes and Templates
  • Velocity and Freemarker
Session: Validation and Interceptors
  • XWork validation framework
  • Implementing validation
  • Type conversion
  • Interceptor role
  • Using interceptors
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
OPTIONAL SESSIONS – Configurable to Meet Student Needs. A brief technical call to assess your training goals and challenges can help us adjust the agenda to best suit your needs, and fit in the skills and topics of most importance to your team to meet your objectives.
 
 
Session: Migrating Struts 1.x Applications
  • Differences Between Struts 1 and 2 Applications
  • Struts 1.x Request Processing
  • Struts 2.x Request Processing
  • ActionForm vs. OGNL
  • Managing Message Resources
  • Commons Validator vs. Validator Engine
  • Migration Strategies and Tools
  • Specific Migration Issues
  • Specific Migration Techniques
Session: Data Management
  • ActionContext and ValueStack
  • Advanced OGNL
  • Type Conversions: Built-In
  • Type Conversions: Custom
  • Working with Maps and Collections
Session: Extending Struts
  • Review of Struts Architecture
  • Reconfiguring the Interceptor Stack
  • Plug-ins
  • Custom Plug-ins
  • Case Study
  • Best Practices
Session: Working with the Tiles Custom Library
(Recommend preceding this session with the Extending Struts session)
  • Defining templates
  • Using put and insert
  • Advanced Tiles
  • Tiles as Visual Components
  • Using Tiles to Write Visual Components
  • Extending Definitions (Optional)
Session: Spring and Struts 2
  • Overview of Spring
  • Motivation for Combining Spring and Struts 2
  • Mechanics of Combining Spring and Struts 2
  • Using Spring with Struts 2
Session: Advanced Validation
  • Validation Framework and Workflow
  • Configuring for Validation: Field and non-Field
  • Built-in Validators
  • Custom Validators
Session: Advanced Topics
  • Action Chaining
  • Dependency Injection
  • Testing
  • Using Annotations
  • Performance Tuning



Interested in any of our courses. Use this form to contact us