Struts - Course Content

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



ALL PDF

sadChapter 1: Struts Architecture

●  MVC and Model 2
●  Command Pattern
●  Struts Framework
●  More XML, Less Java!
●  Action Mappings
●  JavaBeans in Struts
●  Working with Forms
●  Validation
●  Presentation Technology
●  Tiles

Chapter 2: Action Mappings

●  Command Pattern for Web Applications
●  ActionServlet
●  Action
●  ActionMappings
●  Struts Configuration
●  Selecting a Forward
●  Global Forwards
●  Global Exception Handlers
●  Declarative Exception Handling

Chapter 3: Forms

●  Working with HTML Forms
●  Action Forms (Form Beans)
●  Relationship to Input
●  Relationship to Actions
●  Relationship to the Model
●  Relationship to Output
●  DynaActionForm and Map-Backed Forms
●  Validation
●  Coarse-Grained Form Beans

Chapter 4: Struts Tag Libraries

●  Building View Components
●  Struts Tag Libraries
●  Attributes and Struts Expressions
●  Building Forms
●  <html:form>
●  <html:text> et. al.
●  Forms and Form Beans
●  Scope and Duration of Form Data
●  Managing Hyperlinks
●  Error Messages
●  Logic Tags

Chapter 5: The JSP Standard Tag Library

●  JSTL Overview
●  JSP Expression Language
●  Core Tags
●  Formatting Tags
●  XML Tags
●  SQL Tags
●  Mixing JSTL, EL, Scripts and Actions

Chapter 6: Internationalization And Localization

●  i18n in Java
●  i18n in Actions
●  i18n in JSTL
●  i18n in Validation

Chapter 7: Input Validation

●  Validation in Web Applications
●  Validation in Struts
●  The Struts Validator Plug-In
●  Validating ActionForm Subtypes
●  Configuring Validation
●  Standard Validators
●  Rules
●  Is <html:form> Necessary?
●  Reporting Errors
●  Multi-Page Validation
●  Client-Side Validation
●  Limitations on the Client Side
●  Implementing a Validator
●  Implementing ActionForm.validate

Chapter 8. Advanced Configuration

●  Struts Configuration in Depth
●  Wildcards
●  Extensions
●  The Configuration Object Model
●  Subclasses and <set-property>
●  Plug-Ins
●  Integrating Other Frameworks
●  Role-Based Security
●  Chaining Actions
●  The ComposableRequestProcessor Class
●  Configuring Command Chains
●  Modules

Chapter 9: Under The Hood

●  Global Objects
●  Specialized Struts Actions
●  The Utility Package
●  The Commons BeanUtils Class
●  Form Beans as Adapters to the Business Tier
●  Reusing Validation Rules
●  Graceful Validation

Chapter 10: Tiles

●  Consistent Look and Feel
●  Reusable Layouts and Content
●  The Tiles Framework
●  Instantiating Layouts
●  Body-Wrap Insertions
●  Tiles and Stylesheets
●  Working with Tiles Attributes
●  The Tiles Context
●  Definitions
●  Aggregation and Inheritance
●  The Tiles Plug-In
●  Forwarding to Definitions
●  Performance Considerations

Post a Comment

Thank You

Previous Post Next Post