Home Contact Resources Training Profile Clients Careers


Introduction to Struts


Length: 2 days
CourseID: introstruts



Prerequisites:

Participants should have java development background. Familiarity with developing distributed applications is helpful. Students need to have developed with JSP, Servlets, and EJBs before taking this class. We will be developing all of the above technologies in class.


Overview:

Jakarta Struts is the most popular and powerful framework for developing JSP applications. In this Struts training class, experienced Java developers learn how to use Struts and the Model-View-Controller (MVC) design pattern to build scalable, maintainable data-driven Web applications.


Objectives:

  • Understand the problems with vanilla servlets/JSP, and the motivation for Struts
  • Understand MVC and the Struts architecture
  • Understand the Struts controller, Struts views, and Struts resource bundles
  • Create & configure applications using Struts
  • Define views, actions, and FormBeans
  • Use Struts for form processing
  • Use ActionMappings
  • Handle errors and debug Struts applications
  • Use the Bean, Logic, and HTML Custom Tag Libraries
  • Use the flow-of-control custom tags

  • Chapters:


    Getting started with Struts

    Jakarta Struts Project MVC and Struts
    Review of Web applications Servlets & JSP
    Struts Controller, and Struts Views Struts Resource Bundle

    The MVC design pattern: Overview

    Components Model
    View Controller
    Model 2 JSP development Overview of the pattern
    Compare/contrast model 1 vs. model 2 JSP development
    Struts implements model 2 pattern

    Your First Struts Application

    Your First Struts Application Configuring Struts applications
    Defining views Defining actions
    Defining FormBeans Action Mappings

    Configuring Struts

    Configuring Struts Integrating Struts with Apache
    Integrating Struts with Weblogic Integrating Struts with Websphere
    struts-config.xml

    Struts tags

    Struts taglib overview HTML Tags
    Logic Tags Bean Tags
    Introduction to Tiles Tile Tags

    Handling Errors and Debugging Struts Applications

    ActionError and ActionErrors Adding Error handling
    ActionForm validate method Error Management in Action.execute()
    Debugging and logging Handling exceptions
    Declarative Exception Handling

    The Bean, Logic, and HTML Custom Tag Library

    Cookie management Defining and working with beans
    Working with headers Handling message resources
    Working with HTML forms and form beans Iterating over lists
    Conditionally including parts of your JSP