PacktLib: Learning Jakarta Struts 1.2: a concise and practical tutorial

Learning Jakarta Struts 1.2

Credits

Preface

About the Book

Introduction to Struts

1.1 The Apache Jakarta Project

1.2 The Struts Project

1.3 The Struts Framework

1.4 Model Classes

1.5 Design Patterns

1.6 The Model View Controller (MVC)

1.7 MVC versus Model 2

1.8 Controller Component: ActionServlet

1.9 Design Guidelines for Action Classes

1.10 Reflection, Introspection, and DynaBeans

1.11 Session

1.12 Business Logic

1.13 Threads

1.14 Expandability

1.15 Debugging Struts Applications

1.16 Some Experiences

Summary

Hello Struts

2.1 Tomcat Server Installation

2.2 Installation of Struts

2.3 A Simple Page

2.4 Internationalization with Struts

Summary

The Struts Shop

3.1 Why a Bookstore

3.2 Iterations

3.3 Elements of the Shop

3.4 Installing MySQL

3.5 Tables

Summary

Internationalization and Taglibs

4.1 The Structure for the Shop

4.2 Internationalization

4.3 The Welcome Page for the Shop

4.4 Custom Actions

4.5 struts-bean.tld

Summary

Logging and Configuration

5.1 Configuration

5.2 Simple Logging

5.3 Logging Solutions

5.4 JDK Logging

5.5 Reading Configuration Settings

5.6 Logging with Log4J

5.7 Jakarta Commons Logging

5.8 Deciding What to Log

Summary

Forms

6.1 Preparation

6.2 Struts Form Beans

6.3 Database

Summary

Logic

7.1 Value Comparison

7.2 Substring Matching

7.3 Redirection

7.4 Collection Utilities

7.5 Sorting Tags

Summary

Exceptions

8.1 Tomcat Error Pages

8.2 Custom Exceptions

8.3 Exception Handling

8.4 ActionErrors

Summary

Controller and Templates

9.1 Consistent Layout without Struts

9.2 Central Controller with Struts

9.3 Consistent Layout with Struts Tiles

Summary

Putting It All Together

10.1 Authorization

10.2 BookCatalog

10.3 Price Information

10.4 The Shopping Cart

Exercise 4

10.5 Using the Shopping Cart

10.6 Placing Orders

Summary

Struts Validator and Plug-In Classes

11.1 Verifying User Input with the Struts Validator

11.2 Plug-In Classes

Summary

JSTL

12.1 Installation

12.2 Internationalization

12.3 Java Classes

12.4 Iteration

12.5 JSTL and Struts-EL

Summary

Tools and Tricks

13.1 Code Conventions

13.2 The Struts Console

13.3 Struts in WSAD (Eclipse)

13.4 StrutsDoc and Ant

13.5 Display Tags

13.6 Workflow

13.7 Testing: HTTPUnit

13.8 Different Struts Functions

13.9 XSLT Configuration Overview

13.10 Extending ActionServlet

Summary

Solutions

Solutions

Solutions

Solutions

Solutions

Solutions

Solutions

Solutions

Solutions

Solutions

Glossary

Glossary

Literature