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