Introduction to Jakarta Struts Programming



Audience
Java developers, web page designers and other professionals that will be designing, developing and implementing Struts applications.
   

Duration

4 Days
   
Course Abstract
This course will integrate a combination of instructor-led discussions and interactive workshops to demonstrate the development and testing of server-side applications using J2EE component model. This course will focus on illustrating the development of Struts framework applications. The topics in the course will focus on comparing Struts to the servlet/JSP model, describing the various components, discussing the role of the ActionServlet controller, the use of Actions, the use of outcomes to signify navigation, use of message resource files, role of the validation process and the validate method, creating customized ActionServlet processing, use of form beans and ActionForm objects, role of the struts-config.xml configuration file, entries in the struts-config.xml (actions, forwards, etc) and the role of the different tag libraries with JSP files.

All aspects of this class will incorporate the specific architecture of your Application Server and your development IDE to illustrate the implementation of these techniques.

   
Price Call for pricing
Objectives

Upon conclusion participants will have acquired these skills:

  • Understand the role of the Eclipse v3.x IDE tool with Struts
  • Explain the role of Eclipse V3.x projects and perspectives with Struts
  • Demonstrate the usage of Eclipse wizards for rapidly developing Actions, mappings and form beans
  • Illustrate the Struts v1.1 component model and role in designing server-side applications
  • Develop, debug and test ActionServlet, Actions and JSP components
  • Demonstrate usage of custom Stuts JSP tags and tag libraries.
  • Understand the role of the ActionForm for storing state information
  • Depict the role of the reset and validate methods for ActionForms
  • Illustrate the entries in the struts-config.xml file for managing our application
  • Demonstrate the role of an Action and the use of the execute method
  • Depict the customization of Struts using plugin classes
  • Denote the use of the different JSP tag libraries


Class Format Lecture and Lab
   
Prerequisites

Each student should have a basic understanding of application development and design methodologies.

Course Topics

The following list represents the sections and topics discussed in this onsite instructor-led course offering.

 

Struts Overview

  • Create web project with Struts support
  • Create web diagram and architect application components
  • Implementation of form beans, JSPs and actions
  • Use of the Struts configuration file editor
  • Understand the role of the struts-config XML


Struts Development

  • Describe the Struts design model
  • Depict the integration of the MVC model
  • Discuss the role of the ActionServlet and RequestProcessor
  • Depict the usage of the Action class
  • Illustrate different Struts design patterns
  • Understand the role of the various Struts Tag libraries: HTML, Logic, Bean and Nested Tag
  • Depict the configuration of Struts applications via XML deployment descriptor files
  • Illustrate exception handling in a Struts environment
  • Demonstrate the deployment of a Struts-based application

Struts Controller

  • Understand the role of the Controller layer in a Struts environment
  • Depict the usage of the ActionServlet
  • Denote the modifications to the struts-config.xml file
  • Understand the comparisons to the servlet/JSP model
  • Depict the role of Actions
  • Demonstrate the implications of the execute method

Struts Views

  • Understand the role of the Struts View
  • Illustrate the use of Struts View tags
  • Demonstrate the implementation of Struts tag libraries
  • Depict the role of ActionForms

Internationalization

  • Understand the role of internationalization
  • Depict the role of i18n features
  • Demonstrate the use of resource bundles
  • Illustrate the use of the message tags
  • Deployment using a JSP

Managing Errors

  • Understand the role of error handling in Struts
  • Depict the use of ActionError and ActionErrors
  • Illustrate the use of the validate method
  • Demonstrate the use of HTML tags
  • Depict usage of bundle files
  • Understand the modifications to the resource bundle


JSP Tag Libraries

  • Understand role of JSP Standard Tag Library (JSTL)
  • Depict origins of these tags
  • Understand the basic tag libraries: Core, XML, Format and SQL tags
  • Illustrate the usage of general purpose tags
  • Depict conditional logic tags
  • Define the role of exception handling
  • Understand expression language components
  • Understand the role and definition of custom JSP tags
  • Depict usage of .tld files

Custom Action Mapping

  • llustrate the role of action mappings
  • Extending the ActionMapping class
  • Determine deployment of ActionMapping classes
  • Updates to the web.xml file
  • Upgrades to the struts-config.xml file

Struts Expression Language

  • Depict the role of managed beans in a Struts application
  • Compare Struts EL and JSP 2.0
  • Illustrate definition of managed beans in struts-config.xml
  • Outputting bean properties
  • Use of nested bean properties
  • Accessing Collections
  • Understand the use of properties files

Struts Config File

  • Understand the role of the struts-config.xml file
  • Illustrate the use of URL paths
  • Depict the definition of form beans
  • Understand the link between the actions and form beans and outcome navigation
  • Management of Local and Global forwards