Sitemap Programming Jakarta Struts, 2nd Edition Table of Contents Copyright Preface Organization Conventions Used in This Book Using Code Examples Comments and Questions Acknowledgments Chapter 1. Introduction 1.1 A Brief History of the Web 1.2 What Are Java Servlets? 1.3 JavaServer Pages 1.4 JSP Model 1 and Model 2 Architectures 1.5 Why Is Model-View-Controller So Important? 1.6 What Is a Framework? 1.7 Alternatives to Struts Chapter 2. Inside the Web Tier 2.1 An Architecture Overview 2.2 The HTTP Request/Response Phase 2.3 Struts and Scope 2.4 Using URL Parameters 2.4 Using URL Parameters 2.5 Forward Versus Redirect Chapter 3. Overview of the Struts Framework 3.1 A Banking Account Example 3.2 Looking at the Big Picture 3.3 Struts Controller Components 3.4 Struts Model Components 3.5 Struts View Components 3.6 Multiple Application Support 3.7 Summary Chapter 4. Configuring Struts Applications 4.1 The Storefront Application 4.2 What Is a Web Application? 4.3 The Web Application Directory Structure 4.4 The Web Application Deployment Descriptor 4.5 Configuring the web.xml File for Struts 4.6 The Struts Configuration File 4.7 The Digester Component 4.8 The Struts Console Tool 4.9 Reloading the Configuration Files Chapter 5. Struts Controller Components 5.1 The Controller Mechanism 5.2 The Utilities Classes Chapter 6. Struts Model Components 6.1 The 6.2 What Is a Business Object? 6.3 Persistence 6.4 What Does Struts Offer for the Model? Chapter 7. Struts View Components 7.1 What Is a View? 7.2 What Are ActionForms? 7.3 Using ActionErrors 7.4 Performing Presentation Validation 7.5 Using the DynaActionForm Class 7.6 Looking Ahead to JavaServer Faces Chapter 8. JSP Custom Tag Libraries 8.1 Custom Tags Overview 8.2 Tag Libraries Included with Struts 8.3 Using JavaBeans with Struts Tags 8.4 Struts HTML Tags 8.5 Logic Tags 8.6 Bean Tags 8.7 Nested Tags 8.8 Other Useful Tag Libraries 8.9 The JSP Standard Tag Library (JSTL) Chapter 9. Extending the Struts Framework 9.1 What Are Extension Points? 9.2 General Extension Points 9.3 Controller Extension Points 9.4 Extending View Components 9.5 Downsides to Extending the Framework Chapter 10. Exception Handling 10.1 Java Exception Handling 10.2 Performance Impact of Exception Handling 10.3 System Versus Application Exceptions 10.4 Using Chained Exceptions 10.5 Exception Handling Provided by Struts 10.6 Tying Up the Loose Ends 10.7 Conclusion Chapter 11. The Validator Framework 11.1 The Need for a Validation Framework 11.2 Installing and Configuring the Validator 11.3 Using an ActionForm with the Validator 11.4 Creating Your Own Validation Rules 11.5 The Validator and JSP Custom Tags 11.6 Internationalizing the Validation 11.7 Using the Validator Outside of Struts Chapter 12. Internationalization and Struts 12.1 What Is Internationalization? 12.2 Support for I18N in Java 12.3 Internationalizing Your Struts Applications 12.4 Exception Handling and Internationalization Chapter 13. Struts and Enterprise JavaBeans 13.1 Implementing the Storefront Service Using EJB 13.2 Interfacing Struts to EJB 13.3 Conclusion Chapter 14. Using Tiles 14.1 Understanding Templates 14.2 Installing and Configuring Tiles 14.3 Using Tiles 14.4 The Tiles Tag Library 14.5 Using Definitions 14.6 Internationalization Support with Tiles Chapter 15. Logging in a Struts Application 15.1 Logging in a Web Application 15.2 Using the Servlet Container for Logging 15.3 Jakarta Commons Logging 15.4 Using the log4j Package 15.5 Using Commons Logging in JSP Pages 15.6 The Performance Impact of log4j 15.7 Third-Party log4j Extensions 15.8 Java 1.4 Logging API Chapter 16. Packaging Your Struts Application 16.1 To Package or Not to Package 16.2 Packaging the Application as a WAR File 16.3 Building Your Struts Applications with Ant 16.4 Creating an Automated Build Environment 16.5 Restarting Your Server Remotely Chapter 17. Addressing Performance 17.1 What Is Good Performance? 17.2 Performance Versus Load Testing 17.3 Performance- and Stress-Testing Tools 17.4 Testing the Storefront Application 17.5 Performance and Scalability Gotchas Chapter 18. JavaServer Faces 18.1 Struts and JavaServer Faces 18.2 Overview of JSF Architecture 18.3 Installing and Running the Example Struts-Faces Application 18.4 Converting Existing Struts Applications to JSF 18.5 Further Reading Appendix A. Changes Since Struts 1.0 A.1 ActionServlet and RequestProcessor A.2 Modifications to the Struts Action Class A.3 Changes to web.xml and struts-config.xml A.4 Action Statics Changed A.5 TagUtils and ModuleUtils A.6 New Features of Struts 1.1 A.7 The Struts Validator A.8 Change to Commons Logging A.9 Removal of Admin Actions A.10 Deprecation of the GenericDataSource A.11 Dependency on Commons Projects Appendix B. Downloading and Installing Struts B.1 The Binary Versus Source Distributions B.2 Tips on Installing Struts in Tomcat B.3 Tips on Installing Struts in WebLogic B.4 Tips on Installing Struts in WebSphere Appendix C. Resources C.1 The Struts Mailing Lists C.2 The Struts Resource Web Page C.3 Tiles Site C.4 Nested Tags Site C.5 The Struts Console C.6 Easy Struts Project Colophon Index index_A index_B index_C index_D index_E index_F index_G index_H index_I index_J index_L index_M index_N index_O index_P index_Q index_R index_S index_T index_U index_V index_W index_X |