Strust 2 Training | Learn to Design & Build Scalable, Secure, Maintainable Web Applications

Struts 2 Course Description

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

This lab-intensive, hands-on struts training course that will provide students with the skills required to design and build scalable, secure, maintainable web applications - leveraging our team’s extensive experience in the delivery of scalable enterprise applications with complex web interfaces based on JEE technologies.   This course not only provides essential Struts 2.0 knowledge that can be used as the foundation for developing production-quality web applications.  It covers an entire spectrum of advanced topics including zero configuration, testing, using Tiles to enhance the view, and design practices.

Struts 2 Course Learning Outcomes

  •  Understand the problems with vanilla Servlets/JSP, and the motivation for the general Struts framework
  •  Understand MVC and the Struts architecture
  •  Understand the lessons learned from Struts 1.x and how they influenced Struts 2.0
  •  Understand the Struts FilterDispatcher, actions, and results
  •  Create & configure applications using Struts 2.0 and either XML configuration files or annotations
  •  Define, implement, and test ActionSupport and Action classes
  •  Use Struts for form processing
  •  Handle errors and debug Struts applications
  •  Utilize the Struts 2.0 validation framework
  •  Understand and work with the value stack to bind objects to views and request processing
  •  Customize data type conversions and validation
  •  Extend Struts with commonly available or custom plug-ins
  •  Use Struts using annotations and smart defaults to achieve minimal or zero configuration
  •  Understand how Struts 2.0 lends itself very nicely to JUnit testing
  •  Work extensively with OGNL and the value stack
  •  Further, enhance the view portion of Struts using Tiles and the Tiles plugin
  •  Examine the bigger picture of using Struts 2 constructs within various business patterns and in conjunction with JEE development practices
  •  Understand how to maximize the leverage of the Struts 2.0 architecture

Struts 2 Training - Suggested Audience

This course is intended for programmers and designers who want to design and develop applications using the Apache Struts 2.x Model-View-Controller (MVC) framework. Suggested attendees based on our past programs are: 
  • Web Developer
  • Software Developer
  • Any software professionals with relevant experience.

Struts 2 Training Duration

  • Open-House F2F (Public): 5 days
  • In-House F2F (Private): 5 days, for commercials please send us an email with group size to hello@pincorps.com

Struts 2 Training - Prerequisites

  • This is an intermediate to advanced level Struts training course, designed for experienced JEE developers that need to further extend their skills in web development and Struts. Attendees should have an extensive working knowledge in developing JEE applications.

This Apache Struts 2 training course outline includes:

1. Struts Project
  •  What is Struts?
  •  About the Struts Project
  •  Web Applications Defined
  •  Typical User Interactions
  •  Web Application Development Challenges
  •  JEE and Web Applications
  •  Struts Builds on JEE components
  •  Benefits of Using Struts
  • Review Servlets, JSPs, Filters and 

2. Web Applications
  •  Dynamic Content
  •  What are Servlets?
  •  Where do Servlets Live?
  •  Advantages of Servlets
  •  Packages and Classes
  •  Creating a Servlet - The Simplest Way
  •  A Simple HTTP Servlet
  •  Shortcomings of Servlets
  •  What is a JSP?
  •  A Very Simple JSP - simple.jsp
  •  JSPs Look Like HTML
  •  JSP Expressions
  •  JSPs are Really Servlets
  •  Example of the Lifecycle
  •  The Generated Servlet
  •  Object Buckets or Scopes
  •  Using the Scopes
  •  Using useBean
  •  Understanding Filters
  •  Filter Example
  •  Web Applications
  •  WAR Directory Structure
  •  Web Application Descriptor – web.xml
  •  Example web.xml file
  •  Packaging Web Applications
  •  Deploying Web Applications

3. MVC and Struts
  •  MVC/Model 2 Architecture
  •  MVC/Model 2 Architecture - Model
  •  MVC/Model 2 Architecture - View
  •  MVC/Model 2 Architecture - Controller
  •  Struts and MVC
  •  Struts and MVC - Model
  •  Struts and MVC - View
  •  Struts and MVC - Controller

4. What’s new in Struts 2.0
  •  Shortcomings in Struts 1.x
  •  Changes and enhancements in Struts 2.0
  •  Struts 2.0 Benefits
  •  Struts 2.0 Basic Architecture
  •  Key differences from Struts 1

5. Struts 2 Architecture
  •  Overview of the Struts 2.0 Architecture
  •  Request Processing Flow
  •  Request Processing Flow – One View
  •  Request Processing Flow – Another View
  •  Key components
  •  Configuration files

6. Struts 2 Components Overview
  •  Struts 2.0 Basic Architecture
  •  FilterDispatcher
  •  Struts 2.0 Basic Architecture
  •  Action objects
  •  Struts 2.0 Basic Architecture
  •  Results
  •  Struts 2.0 Basic Architecture
  •  Interceptors

7. Creating the Application
  •  Creating a Web Project (manually)
  •  Creating a Web Project (IDE)
  •  Creating a Web Project (Maven)
  •  Web Project Structure
  •  Web Project Structure Example
  •  Web Project Structure - Maven

8. Configuring web.xml
  •  web.xml Overview
  •  web.xml – Struts information

9. Configuring Struts.xml
  •  Configuring Struts.xml
  •  Administrative Elements
  •  Request Handling Elements
  •  Error handling Elements

10. Implementing Actions
  •  Creating Action classes
  •  A simple Action Class
  •  Another Simple Action Class

11. Adding Basic View Components
  •  View Components
  •  A Simple View Component
  •  Configuring the View Component
  •  Session: Mapping the Model to the View

12. Review: Using Custom Tags
  •  JSP Limitations?
  •  Sun’s Solution - Custom Tags
  •  Custom Tags
  •  Custom Tag Capabilities
  •  Custom Tag Overview
  •  Tag Libraries
  •  Tag Library Descriptor (TLD)
  •  Tag Libraries and JSPs
  •  Summary of Using Custom Tags

13. Introducing Struts 2 Tags
  •  The Struts 2 Tag Library
  •  The Value Stack
  •  Tag Syntax
  •  Tag Reference
  •  Tag Reference – Generic Tags
  •  Tag Reference – UI Tags
  •  FreeMarker  and Velocity
  •  FreeMarker Tags
  •  Velocity Tags

14. Themes and Templates
  •  Overview of Templates and Themes
  •  Template Example
  •  The simple Theme
  •  The Default (xhtml) Theme
  •  The ajax Theme

15. XWorks Validation Framework
  •  Validation Techniques
  •  XWork2 Validation
  •  Built-in Validators
  •  Built-in Field Validators - visitor
  •  Built-in Field Validators - conversion
  •  Specifying Validation

16. Implementing Validation
  •  Basic Validation
  •  Basic Validation – the Form
  •  Basic Validation – the Validation Descriptor
  •  Custom Validators

17. Type Conversion
  •  Type Conversion Basics
  •  Type conversion tips
  •  Custom Converters
  •  Custom Converter Example
  •  Session: Localization and I18n
  •  Lesson: Locales and 
  • Internationalization
  •  Significant Issues for Localization
  •  Localization in Struts 2
  •  Locales

18. Resource Bundles
  •  ResourceBundle
  •  Resource Bundle Naming
  •  Message Types in the Bundle
  •  Specifying the Resource Bundle

19. Formatting Messages
  •  Tags with Locale Support: UI tags
  •  Tags with Locale Support: Messages
  •  Tags with Locale Support: date

20. Understanding the Design
  •  Creating TriveraTunes
  •  TriveraTunes Flow
  •  Searching CD’s: The Request
  •  Searching CD’s: Displaying The Results
  •  Choosing what to do next
  •  Editing the Details
  •  Showing Error Messages
  •  Handling Exception
  •  Database Access
  •  Database Access – A Technical Use Case
  •  Database Access – the Service Interface
  •  Database Access – Service Options
  •  DAO Overview
  •  DAO Benefits

21. Implementing the Application
  •  Next Steps
  •  TriveraTunes Flow – the Search Action
  •  Action Classes
  •  Searching CD’s: The Request
  •  The Action
  •  Viewing the Results of the Search
  •  Add/Edit/Delete Listing
  •  Creating the Hyperlinks
  •  Pre-populating Forms
  •  Updating Album
  •  Validating Forms
  •  Validation Error Messages
  •  Showing Error Messages
  •  Handling Exceptions
  •  Exception Messages
  •  Action class vs. Value Object
  •  Nested Beans
  •  Creating the SelectBox
  •  Struts 1 DispatchAction
  •  Edit/Delete Example
  •  Recap – Implementing Searches
  •  Recap – Pre-populating forms
  •  Recap - Validation
  •  Recap: Error Messages
  •  Recap: Exception handling

22. Advanced Topics Overview
  •  Annotations
  •  Zero Configuration
  •  Dependency Injection
  •  Testing in Struts 2
  •  Advanced OGNL and the ValueStack

23. Zero Configuration
  •  Configuration Review
  •  Annotations
  •  Action Class without annotations
  •  Action Class – struts.xml
  •  Action Class notes
  •  Action Class with annotations

24. Testing in Struts 2
  •  Testing Struts 1.x applications
  •  Testing Struts 2.0 applications
  •  Action Class for testing
  •  Simple Test Case

25. Advanced OGNL and the ValueStack
  •  Overview
  •  OGNL
  •  Accessing element attributes
  •  Tag attributes – JSP, Velocity & FreeMarker
  •  Accessing data on the ActionContext
  •  Accessing data on the ValueStack
  •  Accessing data that doesn’t exist
  •  Accessing array data
  •  Accessing Map data
  •  Accessing Objectdata

26. Processing File Uploads
  •  File Upload
  •  The fileUpload Interceptor
  •  Enabling the Client (in struts.xml)
  •  Enabling the Client (plain HTML)
  •  Enabling the Client (using Struts tags)
  •  Resulting Page
  •  Enable Processing of the Data on the Server
  •  Define properties in your Action
  •  Using the File property in an Action
  •  Configuring Upload Environment

27. Introduction to Tiles
  •  Tiles Framework
  •  New Tiles 2 Result Type
  •  Components of Tiles
  •  Typical Web Application (Classic)
  •  Managing Areas
  •  Steps to using Tiles
  •  Add Tiles 2 support
  •  Create Layout: Tile Layout use getAsString
  •  Create Layout: using getAsString
  •  Create Layout: Tile Layout using insert
  •  Create Layout: Using insert
  •  Calling the Layout: tiles:insertTemplate
  •  Passing Parameters: tiles:putAttribute
  •  Tile Definition (in definition.jsp)
  •  Using Definition
  •  Defining XML Definitions (in tiles-def.xml)
  •  Using XML-Based Definition
  •  Tiles

28. Advanced Tiles
  •  Tile Scope
  •  Passing Objects
  •  Using a Tile Attribute in a Tile Layout
  •  Understanding Lists
  •  Using putListAttribute in XML
  •  Using a List in a Tile Layout
  •  Using putListAttribute in JSP to define List
  •  Extending Definitions
  •  Using Tiles to Forward to an Action

29. Common Business Patterns
  •  Common Business Patterns
  •  Model View Controller (MVC)
  •  Diagram of MVC
  •  Front Component
  •  Facade
  •  Synchronous and Asynchronous Architectures
  •  Value Objects
  •  Value Object Example
  •  Value Object Diagram
  •  Data Access Objects
  •  Paged List Pattern

30. JEE Development Practices
  •  JEE Development Best Practices
  •  Understand the Java Pet Store Application
  •  Embrace MVC
  •  Remove Logic from JSPs
  •  Managing Text
  •  Handling Exceptions

31. Leveraging the Struts 2.0 Architecture
  •  Leveraging the Struts 2.0 Architecture
  •  Make effective use of Packages
  •  Use Empty Actions for Forwarding
  •  Use Struts Components in your views
  •  Make effective use of Tiles
  •  Test your actions
  •  Handle Exceptions Declaratively
  •  Integrate Other Technologies
  •  Things to avoid
Keny White

Professor

Keny White is Professor of the Department of Computer Science at Boston University, where he has been since 2004. He also currently serves as Chief Scientist of Guavus, Inc. During 2003-2004 he was a Visiting Associate Professor at the Laboratoire d'Infomatique de Paris VI (LIP6). He received a B.S. from Cornell University in 1992, and an M.S. from the State University of New York at Buffalo.

Bachelor

After working as a software developer and contractor for over 8 years for a whole bunch of companies including ABX, Proit, SACC and AT&T in the US, He decided to work full-time as a private software trainer. He received his Ph.D. in Computer Science from the University of Rochester in 2001. "What I teach varies from beginner to advanced and from what I have seen, anybody can learn and grow from my courses".

Reviews

Average Rating

5
1 rating

Detailed Rating

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0

    This is great

    I really love the course editor in LearnPress. It is never easier when creating courses, lessons, quizzes with this one. It's the most useful LMS WordPress plugin I have ever used. Thank a lot! Testing quiz is funny, I like the sorting choice question type most.