Buying Options
Jakarta Struts Cookbook
Print $44.95
Add to Cart
Print+Ebook $49.45
Add to Cart
Ebook $35.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £34.50
Add to Cart
What is this?
Description
The Jakarta Struts Cookbook is an amazing collection of code solutions to common--and uncommon--problems encountered when building web applications with the Struts Framework. With solutions to real-world problems just a few page flips away, this quick, look-up reference is perfect for independent developers, large development teams, and everyone in between who wishes to use the Struts Framework to its fullest potential.
Full Description
Table of Contents
  1. Chapter 1 Getting Started: Enabling Struts Development

    1. Introduction

    2. Downloading Struts

    3. Deploying the Struts Example Application

    4. Migrating from Struts 1.0 to Struts 1.1

    5. Upgrading from Struts 1.1 to Struts 1.2

    6. Converting JSP Applications to Struts

    7. Managing Struts Configuration Files

    8. Using Ant to Build and Deploy

    9. Generating Struts Configuration Files Using XDoclet

  2. Chapter 2 Configuring Struts Applications

    1. Introduction

    2. Using Plug-ins for Application Initialization

    3. Eliminating Tag Library Declarations

    4. Using Constants on JSPs

    5. Using Multiple Struts Configuration Files

    6. Factoring Your Application into Modules

    7. Using Multiple Resource Bundles

    8. Accessing Message Resources from a Database

    9. Selectively Disabling Actions

  3. Chapter 3 User Interface

    1. Introduction

    2. Using JSTL

    3. Using the Struts-EL Tags

    4. Displaying Indexed Properties

    5. Using Indexed Properties on Forms

    6. Using Indexed Properties in a JSTL Loop

    7. Submitting a Form from an Image

    8. Generating JavaScript on the Fly

    9. Dynamically Changing Select Options Using JavaScript

    10. Generating Dynamic Select List Options

    11. Filtering Text Input

    12. Generating a Set of Related Radio Buttons

    13. Handling Unchecked Checkboxes

    14. Handling Date Input Fields

    15. Setting Tab Order

    16. Generating URLs

    17. Adding Request Parameters to a Link

    18. Using Frames

    19. Defeating Browser Caching

  4. Chapter 4 Tables, Sorting, and Grouping

    1. Introduction

    2. Creating a Horizontal Bar Chart

    3. Creating a Vertical Bar Chart

    4. Alternating Table Row Colors

    5. Sorting HTML Tables

    6. Paging Tables

    7. Using the Display Tag Library

  5. Chapter 5 Processing Forms

    1. Introduction

    2. Creating Dynamic Action Forms

    3. Setting DynaActionForm Initial Values

    4. Using a List-Backed Form Property

    5. Using a Map-Backed Form Property

    6. Lazy Dynamic Action Forms

    7. Populating Value Objects from ActionForms

    8. Automatically Creating ActionForms

  6. Chapter 6 Leveraging Actions

    1. Introduction

    2. Creating a Base Action

    3. Relaying Actions

    4. Returning the HTTP Response

    5. Writing Thread-Safe Actions

    6. Forwarding Requests

    7. Including the Response from a Servlet or JSP

    8. Changing the Current Module

    9. Managing Related Operations from a Central Action

    10. Submitting a Form from Localized Form Controls

    11. Dispatching to Related Operations with Action Mappings

  7. Chapter 7 Execution Control

    1. Introduction

    2. Performing Tasks at Application Startup

    3. Tracking Client Sessions

    4. Monitoring User Logins

    5. Forwarding Users to Alternate Destinations

    6. Forwarding Users to a Module

    7. Creating a Wizard-Style Page Flow

    8. Determining the Action Based on User Input

    9. Using Wildcards in Action Paths

    10. Preventing Double Form Submissions

    11. Allowing Users to Upload Files

    12. Displaying a File from the Server

  8. Chapter 8 Input Validation

    1. Introduction

    2. Reusing Validator Attribute Values

    3. Validating Using Regular Expressions

    4. Validating Dependent Fields in Struts 1.1

    5. Validating Dependent Fields in Struts 1.2

    6. Validating an Indexed Property

    7. Validating Dates

    8. Validating Field Equality with a Custom Validator

    9. Validating Field Equality in Struts 1.2

    10. Validating Two or More Choices

    11. Adding a Custom Validation to a Validator Form

    12. Validating a Wizard Form

    13. Localizing Validation Rules

  9. Chapter 9 Exception and Error Handling

    1. Introduction

    2. Simplifying Exception Processing in an Action

    3. Custom Processing for Declared Exceptions

    4. Using Exception Error Codes

    5. Using a Global Error Page

    6. Reporting Errors and Messages from an Action

    7. Formatting Error Messages

  10. Chapter 10 Connecting to the Data

    1. Introduction

    2. Accessing JDBC Data Sources from an Action

    3. Displaying Relational Data

    4. Mapping SQL Data to Java Objects

    5. Integrating Struts with Hibernate

    6. Decoupling Your Application from External Services

    7. Integrating Spring with Struts

    8. Loading XML Data into Your Application

    9. Refreshing Application Data

  11. Chapter 11 Security

    1. Introduction

    2. Securing Actions Using a Base Action

    3. Checking for User Login on Any Struts Reques t

    4. Securing a JSP Page

    5. Restricting Actions by Role

    6. Implementing "Remember Me" Logins

    7. Ensuring Security Across Your Entire Application

    8. Allowing a User to Log in Automatically

    9. Limiting Access for Specific URLs by Role

    10. Letting the Container Manage Security

    11. Mixing Application-Managed and Container-Managed Security

    12. Configuring Actions to Require SSL

    13. Limiting the Size of Uploaded Files

  12. Chapter 12 Internationalization

    1. Introduction

    2. Detecting Browser Language Settings

    3. Sharing Message Resources with JSTL

    4. Using an Application-Wide Locale

    5. Changing Locale on the Fly

    6. Creating Localized Messages from an Action

    7. Displaying Locale-Specific Text

    8. Displaying Locale-Specific Images

    9. Supporting Character Sets

    10. Localizing Look and Feel

  13. Chapter 13 Testing and Debugging

    1. Introduction

    2. Deploying an Application Automatically

    3. Configuring Struts Logging

    4. Adding Logging to Your Own Classes

    5. Enabling Remote Debugging

    6. Troubleshooting JSP Pages

    7. Testing Your Actions with Mock Objects

    8. Testing Your Actions in the Container

    9. Testing Application Functionality

  14. Chapter 14 Tiles and Other Presentation Approaches

    1. Introduction

    2. Reusing a Common Page Layout with Tiles

    3. Extending Tile Definitions

    4. Displaying Tiles Using a Struts Forward

    5. Creating Tabbed Panes

    6. Using Tiles for I18N

    7. Using Tiles in a Modular Application

    8. Reusing a Common Page Layout with SiteMesh

    9. Integrating JavaServer Faces with Struts

    10. Integrating Struts and Velocity

    11. Integrating Struts and XSLT

  1. Colophon

View Full Table of Contents
Product Details
Title:
Jakarta Struts Cookbook
By:
Bill Siggelkow
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
February 2005
Ebook Release:
February 2009
Pages:
528
Print ISBN:
978-0-596-00771-3
| ISBN 10:
0-596-00771-X
Ebook ISBN:
978-0-596-10460-3
| ISBN 10:
0-596-10460-X
Customer Reviews
About the Author
  1. Bill Siggelkow

    Bill Siggelkow is an independent consultant specializing in software design, development, and technical training. Bill is an active member of the Atlanta Struts User Group and frequently serves as a presenter for the group. With nearly 20 years of development experience, he has designed and developed systems for the manufacturing, energy marketing, e-commerce, and financial service industries.

    Bill enjoys training and mentoring developers in the art of object-oriented programming and web development.

    Bill lives in Atlanta, Georgia and has a degree in Industrial Engineering from Georgia Tech.

    View Bill Siggelkow's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Jakarta Struts Cookbook is a tragopan. Tragopans, or horned pheasants, are found along the Himalayas from Kashmir to central and southeastern China. Male tragopans are among the world's most spectacular birds because of their brilliant array of colors and spots, long crown feathers, and blue crests. In villages near the Great Himalayan National Park, the western tragopan has earned the local name Jujurana, or "the king of the birds." There, legend has it that when this pheasant was created, every bird in the universe donated a feather to give it color and unparalleled beauty. Female tragopans, on the other hand, are rather dull looking. Even breeders sometimes find it difficult to distinguish hens of one species from those of another.

Tragopans feed on insects, leaves, sprouts, and seeds, and are thought to be monogamous. Although incubation is done entirely by the female, the male may assist in tending the chicks. Most tragopans are good breeders in captivity, adapting well to various cold-weather climates and becoming quite tame.

There are five species of tragopans, four of which are in danger of extinction due to the destruction of their habitats. Unlike most fowl, tragopans live at very high elevations ranging from 925 to 3,650 meters. In the winter, they are typically found in the thickest parts of pine trees, but during mating season, they travel upward to the extreme limits of the forest. Finding a high branch, the male western tragopan establishes a territorial perch from which he calls at five-minute intervals. His call, which some have described as similar to that of a goose or young lamb, can be heard for more than a mile. Matt Hutchinson was the production editor for Jakarta Struts Cookbook. GEX, Inc. provided production services. Darren Kelly, Mary Anne Weeks Mayo, and Claire Cloutier provided quality control.

Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with Adobe InDesign CS using Adobe's ITC Garamond font.

David Futato designed the interior layout, based on his own series design. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand MX and Adobe Photoshop CS. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Lydia Onofrei.

  • Book cover of Jakarta Struts Cookbook