SitemapProgramming Jakarta Struts, 2nd EditionTable of ContentsCopyrightPrefaceOrganizationConventions Used in This BookUsing Code ExamplesComments and QuestionsAcknowledgmentsChapter 1. Introduction1.1 A Brief History of the Web1.2 What Are Java Servlets?1.3 JavaServer Pages1.4 JSP Model 1 and Model 2 Architectures1.5 Why Is Model-View-Controller So Important?1.6 What Is a Framework?1.7 Alternatives to StrutsChapter 2. Inside the Web Tier2.1 An Architecture Overview2.2 The HTTP Request/Response Phase2.3 Struts and Scope2.4 Using URL Parameters2.4 Using URL Parameters2.5 Forward Versus RedirectChapter 3. Overview of the Struts Framework3.1 A Banking Account Example3.2 Looking at the Big Picture3.3 Struts Controller Components3.4 Struts Model Components3.5 Struts View Components3.6 Multiple Application Support3.7 SummaryChapter 4. Configuring Struts Applications4.1 The Storefront Application4.2 What Is a Web Application?4.3 The Web Application Directory Structure4.4 The Web Application Deployment Descriptor4.5 Configuring the web.xml File for Struts4.6 The Struts Configuration File4.7 The Digester Component4.8 The Struts Console Tool4.9 Reloading the Configuration FilesChapter 5. Struts Controller Components5.1 The Controller Mechanism5.2 The Utilities ClassesChapter 6. Struts Model Components6.1 The6.2 What Is a Business Object?6.3 Persistence6.4 What Does Struts Offer for the Model?Chapter 7. Struts View Components7.1 What Is a View?7.2 What Are ActionForms?7.3 Using ActionErrors7.4 Performing Presentation Validation7.5 Using the DynaActionForm Class7.6 Looking Ahead to JavaServer FacesChapter 8. JSP Custom Tag Libraries8.1 Custom Tags Overview8.2 Tag Libraries Included with Struts8.3 Using JavaBeans with Struts Tags8.4 Struts HTML Tags8.5 Logic Tags8.6 Bean Tags8.7 Nested Tags8.8 Other Useful Tag Libraries8.9 The JSP Standard Tag Library (JSTL)Chapter 9. Extending the Struts Framework9.1 What Are Extension Points?9.2 General Extension Points9.3 Controller Extension Points9.4 Extending View Components9.5 Downsides to Extending the FrameworkChapter 10. Exception Handling10.1 Java Exception Handling10.2 Performance Impact of Exception Handling10.3 System Versus Application Exceptions10.4 Using Chained Exceptions10.5 Exception Handling Provided by Struts10.6 Tying Up the Loose Ends10.7 ConclusionChapter 11. The Validator Framework11.1 The Need for a Validation Framework11.2 Installing and Configuring the Validator11.3 Using an ActionForm with the Validator11.4 Creating Your Own Validation Rules11.5 The Validator and JSP Custom Tags11.6 Internationalizing the Validation11.7 Using the Validator Outside of StrutsChapter 12. Internationalization and Struts12.1 What Is Internationalization?12.2 Support for I18N in Java12.3 Internationalizing Your Struts Applications12.4 Exception Handling and InternationalizationChapter 13. Struts and Enterprise JavaBeans13.1 Implementing the Storefront Service Using EJB13.2 Interfacing Struts to EJB13.3 ConclusionChapter 14. Using Tiles14.1 Understanding Templates14.2 Installing and Configuring Tiles14.3 Using Tiles14.4 The Tiles Tag Library14.5 Using Definitions14.6 Internationalization Support with TilesChapter 15. Logging in a Struts Application15.1 Logging in a Web Application15.2 Using the Servlet Container for Logging15.3 Jakarta Commons Logging15.4 Using the log4j Package15.5 Using Commons Logging in JSP Pages15.6 The Performance Impact of log4j15.7 Third-Party log4j Extensions15.8 Java 1.4 Logging APIChapter 16. Packaging Your Struts Application16.1 To Package or Not to Package16.2 Packaging the Application as a WAR File16.3 Building Your Struts Applications with Ant16.4 Creating an Automated Build Environment16.5 Restarting Your Server RemotelyChapter 17. Addressing Performance17.1 What Is Good Performance?17.2 Performance Versus Load Testing17.3 Performance- and Stress-Testing Tools17.4 Testing the Storefront Application17.5 Performance and Scalability GotchasChapter 18. JavaServer Faces18.1 Struts and JavaServer Faces18.2 Overview of JSF Architecture18.3 Installing and Running the Example Struts-Faces Application18.4 Converting Existing Struts Applications to JSF18.5 Further ReadingAppendix A. Changes Since Struts 1.0A.1 ActionServlet and RequestProcessorA.2 Modifications to the Struts Action ClassA.3 Changes to web.xml and struts-config.xmlA.4 Action Statics ChangedA.5 TagUtils and ModuleUtilsA.6 New Features of Struts 1.1A.7 The Struts ValidatorA.8 Change to Commons LoggingA.9 Removal of Admin ActionsA.10 Deprecation of the GenericDataSourceA.11 Dependency on Commons ProjectsAppendix B. Downloading and Installing StrutsB.1 The Binary Versus Source DistributionsB.2 Tips on Installing Struts in TomcatB.3 Tips on Installing Struts in WebLogicB.4 Tips on Installing Struts in WebSphereAppendix C. ResourcesC.1 The Struts Mailing ListsC.2 The Struts Resource Web PageC.3 Tiles SiteC.4 Nested Tags SiteC.5 The Struts ConsoleC.6 Easy Struts ProjectColophonIndexindex_Aindex_Bindex_Cindex_Dindex_Eindex_Findex_Gindex_Hindex_Iindex_Jindex_Lindex_Mindex_Nindex_Oindex_Pindex_Qindex_Rindex_Sindex_Tindex_Uindex_Vindex_Windex_X |