  
                    
|
| |
 |
STRUTS
| Course Description |
|
This three-day course will teach students how to use Java Struts as a framework to develop web applications that follow the Model/View/Controller design pattern. The topics cover the components of Struts that are available from the Jakarta project of the Apache Foundation. The course illustrates what the components provide and use of them.
Course Length: 3 Days
Course Tuition: $990 (US)
|
| Prerequisites |
|
|
Java Programming, Java Servlets, JavaServer Pages or Java2 Enterprise Edition. Java Servlet and JSP programming experience, and a basic understanding of HTML and XML is required.
|
• Struts Overview
Objectives of Struts
Where Does Struts Come From?
Underlying MVC Architectural Components
Model 1 Design Pattern
Model 2 / MVC Design Pattern
Implementing MVC with a Framework
What is Struts?
Basic Struts Components
Struts Documentation
A Struts-Based Application: Logon
• Struts in a Simple Web Application
Stars Information Application
List Stars Flow
Display Star Flow
ActionServlet: the Controller
struts-config.xml
ActionForm: Form State
The execute Method of Action
The execute Method of StarsDisplayAction
Directing Flow of Processing with an ActionForward
Building a View with Struts Tags
Using Struts Taglibs in a JSP
The struts-blank.war: A Good Place to Start
Review: Flow through a Typical Struts-Based Application
• The Controller
ActionServlet as a Controller
RequestProcessor
Developer Responsibilities
Mapping
Forwards
Lifecycle of an ActionForm
ActionForm Considerations
The validate Method
• Action and the Business Model
The Role of an Action
The execute Method of Action
Threading Considerations
execute() Method Considerations
Handling an Error
Some Best Practices for Action
More Best Practices for Action
• The View
Forwarding to a View
Overview of Struts Tags
Struts HTML Tags
Form Related Tags
Struts Bean Tags
Some Bean Tags
Struts Logic Tags
Logic Tag Commonalities
The Tag
Logic Tag Examples
Some Struts View Best Practices
• Additional View and Form Support
More HTML Tags
Dealing with URLs
Using Error Tags
Internationalization with Struts Tags
Accessing Bean Properties
DynaActionForm: A Configurable Form
Indexed and Mapped Properties in a Form
|
• Meeting Additional Application Requirements
Java's MessageFormat Class
Using MessageResources
Techniques for Formatting Data
Preventing Duplicate Form Submits
Using ForwardAction and IncludeAction
DispatchAction
Configuring LookupDispatchAction
JSP Buttons for LookupDispatchAction
Extending LookupDispatchAction
• Handling Errors
Error Handling Options with Struts
Documenting Errors with ActionError
JSP Error Pages
Declarative Java Exception Handling
Logging in Struts
• Validation
Validator Overview
Validator Requirements
Configuring Validator Rules
Struts Validators
Configuring the Struts Validators
Configuring Form Validation: validation.xml
Validator Rules Usage
Validation with Regular Expressions: The mask Rule
ValidatorForm verses ValidatorActionForm
Multiple Page Input with the Validator
Implementing a Validator Method
Other Validator Implications
• Page Composition with Tiles
Tiles Overview
Building a Tiles Template
Basic Tiles Example
Tiles Definitions
Additional Options with Definitions
Placing Definitions in a Configuration File
Using the Tag
Defining Attributes with , , , and - Tags
A Tiles Controller
Enabling the Tiles Plug-In
Using Tiles
• Appendix - Nested and Struts-EL Tags
Why Nested Tags?
Using Nested Tags
Parent and Root Tags
The Whats and Whys of Expression Language
EL in Struts Tags
JSTL verses Struts-EL
Expression Syntax
Operators in Expressions
EL Functions
Download a detailed course outline (PDF)
Contact us for course schedules or more
information.
|
|
 |
|
|
|
|