Books & Videos

Table of Contents

  1. Chapter 1 Introduction

    1. A Brief History of the Web

    2. What Are Java Servlets?

    3. JavaServer Pages

    4. JSP Model 1 and Model 2 Architectures

    5. Why Is Model-View-Controller So Important?

    6. What Is a Framework?

    7. Creation of the Struts Framework

    8. Alternatives to Struts

  2. Chapter 2 Inside the Web Tier

    1. An Architecture Overview

    2. The HTTP Request/Response Phase

    3. Struts and Scope

    4. Using URL Parameters

    5. Forward Versus Redirect

  3. Chapter 3 Overview of the Struts Framework

    1. A Banking Account Example

    2. Looking at the Big Picture

    3. Struts Controller Components

    4. Struts Model Components

    5. Struts View Components

    6. Multiple Application Support

    7. Summary

  4. Chapter 4 Configuring Struts Applications

    1. The Storefront Application

    2. What Is a Web Application?

    3. The Web Application Directory Structure

    4. The Web Application Deployment Descriptor

    5. Configuring the web.xml File for Struts

    6. The Struts Configuration File

    7. The org.apache.struts.config Package

    8. The Digester Component

    9. The Struts Console Tool

    10. Reloading the Configuration Files

  5. Chapter 5 Struts Controller Components

    1. The Controller Mechanism

    2. The Utilities Classes

  6. Chapter 6 Struts Model Components

    1. The “M” in MVC

    2. What Is a Business Object?

    3. Persistence

    4. What Does Struts Offer for the Model?

    5. Building the Storefront Model

  7. Chapter 7 Struts View Components

    1. What Is a View?

    2. What Are ActionForms?

    3. Using ActionErrors

    4. Performing Presentation Validation

    5. Using the DynaActionForm Class

    6. Looking Ahead to JavaServer Faces

  8. Chapter 8 JSP Custom Tag Libraries

    1. Custom Tags Overview

    2. Tag Libraries Included with Struts

    3. Using JavaBeans with Struts Tags

    4. Struts HTML Tags

    5. Logic Tags

    6. Bean Tags

    7. Template Tags

    8. Nested Tags

    9. Other Useful Tag Libraries

    10. The JSP Standard Tag Library (JSTL)

  9. Chapter 9 Extending the Struts Framework

    1. What Are Extension Points?

    2. General Extension Points

    3. Controller Extension Points

    4. Extending View Components

    5. Extending Model Components

    6. Downsides to Extending the Framework

  10. Chapter 10 Exception Handling

    1. Java Exception Handling

    2. System Versus Application Exceptions

    3. Using Chained Exceptions

    4. Exception Handling Provided by Struts

    5. Tying Up the Loose Ends

    6. Conclusion

  11. Chapter 11 The Validator Framework

    1. The Need for a Validation Framework

    2. Installing and Configuring the Validator

    3. Using an ActionForm with the Validator

    4. Creating Your Own Validation Rules

    5. The Validator and JSP Custom Tags

    6. Internationalizing the Validation

    7. Using the Validator Outside of Struts

  12. Chapter 12 Internationalization and Struts

    1. What Is Internationalization?

    2. Support for I18N in Java

    3. Internationalizing Your Struts Applications

    4. Exception Handling and Internationalization

  13. Chapter 13 Struts and Enterprise JavaBeans

    1. Implementing the Storefront Service Using EJB

    2. Interfacing Struts to EJB

    3. Conclusion

  14. Chapter 14 Using Tiles

    1. Understanding Templates

    2. Installing and Configuring Tiles

    3. Overview of Tiles

    4. The Tiles Tag Library

    5. Using Definitions

    6. Internationalization Support with Tiles

  15. Chapter 15 Logging in a Struts Application

    1. Logging in a Web Application

    2. Using the Servlet Container for Logging

    3. Jakarta Commons Logging

    4. Using the log4j Package

    5. Using Commons Logging in JSP Pages

    6. The Performance Impact of log4j

    7. Third-Party log4j Extensions

    8. Java 1.4 Logging API

  16. Chapter 16 Packaging Your Struts Application

    1. To Package or Not to Package

    2. Deciding How to Package Your Application

    3. Packaging the Application as a WAR File

    4. Building Your Struts Applications with Ant

    5. Creating an Automated Build Environment

    6. Restarting Your Server Remotely

  17. Chapter 17 Addressing Performance

    1. What Is Good Performance?

    2. Performance Versus Load Testing

    3. Performance- and Stress-Testing Tools

    4. Testing the Storefront Application

    5. Performance and Scalability Gotchas

  1. Appendix Changes Since Struts 1.0

    1. ActionServlet and RequestProcessor

    2. Modifications to the Struts Action Class

    3. Changes to web.xml and struts-config.xml

    4. New Features of Struts 1.1

    5. The Struts Validator

    6. Change to Commons Logging

    7. Removal of Admin Actions

    8. Deprecation of the GenericDataSource

    9. Dependency on Commons Projects

  2. Appendix Downloading and Installing Struts

    1. The Binary Versus Source Distributions

    2. Tips on Installing Struts in Tomcat

    3. Tips on Installing Struts in WebLogic

    4. Tips on Installing Struts in WebSphere

    5. Tips on Installing Struts in JRun

  3. Appendix Resources

    1. The Struts Mailing Lists

    2. The Struts Resource Web Page

    3. Validator Site

    4. Tiles Site

    5. Nested Tags Site

    6. The Struts Console

    7. Easy Struts Project

  4. Colophon