Struts 2 is an open source, Model-View-Controller (MVC) framework developed by The Apache Software Foundation as part of its Jakarta project. Struts 2 is built on top of JSP, Servlets, and tag libraries. Struts 2 addresses many major issues in using vanilla Servlets/JSP to build web systems. It solves the problem of controller complexity by removing the workflow logic from the Servlets and directing workflow in an XML configuration file. Struts 2 improves on the limited form support in JSP by adding numerous capabilities to form processing including easy validation, easy error display, and the refilling of form input on form retries from the user’s previous entries. It minimizes the complexity of JSP pages, by supplying a very extensive and flexible set of custom tag libraries for many of the standard operations needed in JSP pages.
Created in collaboration with several leading JEE and Struts authors and industry experts, the Mastering Struts 2.0 Developer’s Workshop is a lab-intensive, hands-on struts training course that will provide experienced Java developers with the skills required to design and build scalable, secure, maintainable web applications. This course provides students with the skills required for developing production-quality web applications, as well as hands-on exposure to advanced topics including zero configuration, testing, using Tiles to enhance the view, and design practices.
Students will leave the course armed with a full set of skills to design, implement, deploy, and troubleshoot Struts 2.0 web applications. This course provides coverage of all the standard components, filters, renderers, converters, and validators, along with advice on how to use them to create solid applications. Working in a hands-on environment, students will explore and use complex user interface layouts, prototyping, and integrating templates with back-end model objects.
Working in a dynamic, interactive discussion and hands-on programming environment, developers will:
This is an intermediate level developer course, designed for experienced Java developers with some experience working with Servlets/JSPs, who need to further extend their skills in web development and Struts. Attendees should have an extensive working knowledge in developing basic Java applications.
Session: Getting Started with Struts 2.0
Lesson: Jakarta 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
Lesson: Review Servlets, JSPs, Filters and Web Applications
Lesson: MVC and Struts
Lesson: What’s new in Struts 2.0
Lesson: Struts 2 Architecture
Lesson: Struts 2 Components Overview
Session: Your First Struts Application
Lesson: 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
Lesson: Configuring web.xml
· web.xml Overview
· web.xml – Struts information
Lesson: Configuring Struts.xml
· Configuring Struts.xml
· Administrative Elements
· Request Handling Elements
· Error handling Elements
Lesson: Implementing Actions
· Creating Action classes
· A simple Action Class
· Another Simple Action Class
Lesson: Adding Basic View Components
· View Components
· A Simple View Component
· Configuring the View Component
· Session: Mapping the Model to the View
Lesson: 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
Lesson: 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
Lesson: Themes and Templates
Session: Validation and Type Conversion
Lesson: XWorks Validation Framework
Lesson: Implementing Validation
Lesson: Type Conversion
Lesson: Resource Bundles
Lesson: Formatting Messages
Session: Putting It All Together
Lesson: Understanding the Design
Lesson: Implementing the Application
Session: Advanced Topics
Lesson: Advanced Topics Overview
Lesson: Zero Configuration
Lesson: Testing in Struts 2
Lesson: Advanced OGNL and the ValueStack
Lesson: Processing File Uploads
Session: Enhancing the View
Lesson: Introduction to Tiles
Lesson: Advanced Tiles
Session: Best Practices
Lesson: Common Business Patterns
Lesson: JEE Development Practices
Lesson: 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
Each student will receive a course Student Guide, complete with course notes, code samples, software tutorials, diagrams and related reference materials and links. Our courses also include a Student Workbook, with step by step hands-on lab instructions and project files (as necessary) and solutions, clearly illustrated for users to complete hands-on work in class, and to revisit to review or refresh skills at any time. Students will also receive the course set up files, project files (or code, if applicable) and solutions required for the hands-on work.
Live scheduled classes are listed below or browse our full course catalog anytime
Check out custom training solutions planned around your unique needs and skills.
Exclusive materials, ongoing support and a free live course refresh with every class.
Mix, Match & Master!
2FOR1: Two Courses, One Price!
Enroll in *any* two public courses (for 2023 *OR* 2024 dates!) by December 31, for one price! Learn something new, or share the promo!
Special Offers
Limited Offer for most courses.
SAVE 50%