Skip Navigation Links

Course Length:
5 Days
Course Description:
This course shows JSP and Servlet developers how to build web applications using the Apache Struts framework. Students learn to use the Struts architecture to develop web applications using the Model-View-Controller (MVC) design pattern and Struts custom tags to create JSPs and Servlets that adhere to an industry standard.
Who Should Attend:
This course is for Java 2 Platform, Enterprise Edition (J2EE) application developers.
Benefits of Attendance:
Upon completion of this course, students will be able to:
  • Desribe the Struts 2 Architecure
  • Describe the Model-View-Controller (MVC) Architecure
  • Create a basic Struts 2 Web application
  • Create and modify Struts configuration files
  • Create action classes from POJOs
  • Create action classes by extending existing framework
  • Work with results to present views to the client
  • Understand and apply exception mappings
  • Implement interceptors
  • Use interceptors to assist in programmatic data validation
  • Utilize the the OGNL expression language
  • Understand the Value Stack used by OGNL
  • Implement data tags within the client view
  • Implement generic tags within the client view
  • Utilize form tags to tie the actions to the JSP views
Prerequisites:
Students should be familiar with Java Servlets and JavaServer Pages (JSPs), and have experience with Web application development.
Course Outline:
  • Chapter 1: The Evolution of a Web Application
    1. What Is a Web Application?
    2. A Static HTML Resource
    3. HTML Forms
    4. Servlets
    5. JavaServer Pages (JSP)
    6. JavaBeans, Custom Tags, and JSTL
    7. Web Application Frameworks
  • Chapter 2: Overview of the Struts 2 Framework
    1. Tiered Architectures
    2. Model-View-Controller (MVC) Architecture
    3. The Struts 2 Framework
    4. Bundling the Struts 2 Libraries
    5. Creating a Basic Struts 2 Web Application
  • Chapter 3: Struts Configuration Files
    1. An Overview of Struts Configuration Files
    2. The struts.xml Configuration File
    3. The package Element
    4. The action Element
    5. The result Element
    6. The struts.properties Configuration File
    7. A HelloStruts Application
    8. Examining the HelloStruts Application
  • Chapter 4: Actions in Detail
    1. POJOs as Actions
    2. Implementing the Action Interface
    3. Actions Accessing Resources
    4. A
    5. The ActionSupport Class
  • Chapter 5: Results and Result Types
    1. The result Element
    2. Standard Result Types
    3. Global Results and Exception Mappings
    4. SearchingForResults Application
    5. A ButtonBuilder Application
  • Chapter 6: Interceptors
    1. An Overview of Interceptors
    2. Struts Predefined Interceptors
    3. A Simple Example
    4. Interceptor Details
    5. A Progress Meter Example
    6. Programmatic Validation of Data
  • Chapter 7: OGNL and the Value Stack
    1. An Overview of OGNL
    2. An Overview of the Value Stack
    3. OGNL with Java Collections and Maps
    4. OGNL With Collections and Maps
    5. Additional OGNL Features
  • Chapter 8: Generic Tags
    1. Generic Data Tags
    2. Generic Control Tags
    3. Data and Control Tags Reference
  • Chapter 9: Form Tags
    1. Form Tags
    2. Shared Form Tag Attributes
    3. Form Tags Reference
  • Appendix A: Software Libraries Reference Sheet
    1. Installed Software Directories
  • Appendix B: Developing Java Web Applications With Eclipse
    1. What is Eclipseâ„¢?
    2. Starting Eclipse
    3. Configuring the Workspace
    4. Configuring a Server in Eclipse
    5. Configuring the Apache Tomcat Server
    6. Installing the GlassFish Plug-in for Eclipse
    7. Configuring the GlassFish Application Server
    8. Configuring the JBoss Application Server
    9. Configuring Server Publishing
    10. Starting and Stopping Servers in Eclipse
    11. Configuring Apache Derby in Eclipse
    12. Configuring MySQL in Eclipse
    13. Creating a Dynamic Web Project
    14. Creating an HTML Page
    15. Creating a JSP Page
    16. Creating a Servlet
    17. Configuring the Build Path
  • Appendix C: HTML Reference
    1. Introduction
    2. A Simple HTML Document
    3. Basic Tags
    4. Formatting Tags
    5. Links
    6. Forms
  • Appendix D: Web Accessibility
    1. What is Accessibility?
    2. What is Section 508?
    3. Accessibility Initiatives and Related Legislation
    4. Types of Disabilities
    5. Assistive Technologies
    6. Benefits of Accessible Design
    7. General Coding Practices
    8. Other Recommendations