Flylib.com
Jakarta Struts Cookbook
Jakarta Struts Cookbook
ISBN: 059600771X
EAN: 2147483647
Year: 2005
Pages: 200
Authors:
Bill Siggelkow
BUY ON AMAZON
Jakarta Struts Cookbook
Table of Contents
Copyright
Preface
Audience
Scope and Organization
Assumptions This Book Makes
Conventions Used in This Book
Using Code Examples
Comments and Questions
Safari Enabled
Acknowledgments
Chapter 1. Getting Started: Enabling Struts Development
Introduction
Recipe1.1.Downloading Struts
Recipe1.2.Deploying the Struts Example Application
Recipe1.3.Migrating from Struts 1.0 to Struts 1.1
Recipe1.4.Upgrading from Struts 1.1 to Struts 1.2
Recipe1.5.Converting JSP Applications to Struts
Recipe1.6.Managing Struts Configuration Files
Recipe1.7.Using Ant to Build and Deploy
Recipe1.8.Generating Struts Configuration Files Using XDoclet
Chapter 2. Configuring Struts Applications
Introduction
Recipe2.1.Using Plug-ins for Application Initialization
Recipe2.2.Eliminating Tag Library Declarations
Recipe2.3.Using Constants on JSPs
Recipe2.4.Using Multiple Struts Configuration Files
Recipe2.5.Factoring Your Application into Modules
Recipe2.6.Using Multiple Resource Bundles
Recipe2.7.Accessing Message Resources from a Database
Recipe2.8.Selectively Disabling Actions
Chapter 3. User Interface
Introduction
Recipe3.1.Using JSTL
Recipe3.2.Using the Struts-EL Tags
Recipe3.3.Displaying Indexed Properties
Recipe3.4.Using Indexed Properties on Forms
Recipe3.5.Using Indexed Properties in a JSTL Loop
Recipe3.6.Submitting a Form from an Image
Recipe3.7.Generating JavaScript on the Fly
Recipe3.8.Dynamically Changing Select Options Using JavaScript
Recipe3.9.Generating Dynamic Select List Options
Recipe3.10.Filtering Text Input
Recipe3.11.Generating a Set of Related Radio Buttons
Recipe3.12.Handling Unchecked Checkboxes
Recipe3.13.Handling Date Input Fields
Recipe3.14.Setting Tab Order
Recipe3.15.Generating URLs
Recipe3.16.Adding Request Parameters to a Link
Recipe3.17.Using Frames
Recipe3.18.Defeating Browser Caching
Chapter 4. Tables, Sorting, and Grouping
Introduction
Recipe4.1.Creating a Horizontal Bar Chart
Recipe4.2.Creating a Vertical Bar Chart
Recipe4.3.Alternating Table Row Colors
Recipe4.4.Sorting HTML Tables
Recipe4.5.Paging Tables
Recipe4.6.Using the Display Tag Library
Chapter 5. Processing Forms
Introduction
Recipe5.1.Creating Dynamic Action Forms
Recipe5.2.Setting DynaActionForm Initial Values
Recipe5.3.Using a List-Backed Form Property
Recipe5.4.Using a Map-Backed Form Property
Recipe5.5.Lazy Dynamic Action Forms
Recipe5.6.Populating Value Objects from ActionForms
Recipe5.7.Automatically Creating ActionForms
Chapter 6. Leveraging Actions
Introduction
Recipe6.1.Creating a Base Action
Recipe6.2.Relaying Actions
Recipe6.3.Returning the HTTP Response
Recipe6.4.Writing Thread-Safe Actions
Recipe6.5.Forwarding Requests
Recipe6.6.Including the Response from a Servlet or JSP
Recipe6.7.Changing the Current Module
Recipe6.8.Managing Related Operations from a Central Action
Recipe6.9.Submitting a Form from Localized Form Controls
Recipe6.10.Dispatching to Related Operations with Action Mappings
Chapter 7. Execution Control
Introduction
Recipe7.1.Performing Tasks at Application Startup
Recipe7.2.Tracking Client Sessions
Recipe7.3.Monitoring User Logins
Recipe7.4.Forwarding Users to Alternate Destinations
Recipe7.5.Forwarding Users to a Module
Recipe7.6.Creating a Wizard-Style Page Flow
Recipe7.7.Determining the Action Based on User Input
Recipe7.8.Using Wildcards in Action Paths
Recipe7.9.Preventing Double Form Submissions
Recipe7.10.Allowing Users to Upload Files
Recipe7.11.Displaying a File from the Server
Chapter 8. Input Validation
Introduction
Recipe8.1.Reusing Validator Attribute Values
Recipe8.2.Validating Using Regular Expressions
Recipe8.3.Validating Dependent Fields in Struts 1.1
Recipe8.4.Validating Dependent Fields in Struts 1.2
Recipe8.5.Validating an Indexed Property
Recipe8.6.Validating Dates
Recipe8.7.Validating Field Equality with a Custom Validator
Recipe8.8.Validating Field Equality in Struts 1.2
Recipe8.9.Validating Two or More Choices
Recipe8.10.Adding a Custom Validation to a Validator Form
Recipe8.11.Validating a Wizard Form
Recipe8.12.Localizing Validation Rules
Chapter 9. Exception and Error Handling
Introduction
Recipe9.1.Simplifying Exception Processing in an Action
Recipe9.2.Custom Processing for Declared Exceptions
Recipe9.3.Using Exception Error Codes
Recipe9.4.Using a Global Error Page
Recipe9.5.Reporting Errors and Messages from an Action
Recipe9.6.Formatting Error Messages
Chapter 10. Connecting to the Data
Introduction
Recipe10.1.Accessing JDBC Data Sources from an Action
Recipe10.2.Displaying Relational Data
Recipe10.3.Mapping SQL Data to Java Objects
Recipe10.4.Integrating Struts with Hibernate
Recipe10.5.Decoupling Your Application from External Services
Recipe10.6.Integrating Spring with Struts
Recipe10.7.Loading XML Data into Your Application
Recipe10.8.Refreshing Application Data
Chapter 11. Security
Introduction
Recipe11.1.Securing Actions Using a Base Action
Recipe11.2.Checking for User Login on Any Struts Reques t
Recipe11.3.Securing a JSP Page
Recipe11.4.Restricting Actions by Role
Recipe11.5.Implementing
Recipe11.6.Ensuring Security Across Your Entire Application
Recipe11.7.Allowing a User to Log in Automatically
Recipe11.8.Limiting Access for Specific URLs by Role
Recipe11.9.Letting the Container Manage Security
Recipe11.10.Mixing Application-Managed and Container-Managed Security
Recipe11.11.Configuring Actions to Require SSL
Recipe11.12.Limiting the Size of Uploaded Files
Chapter 12. Internationalization
Introduction
Recipe12.1.Detecting Browser Language Settings
Recipe12.2.Sharing Message Resources with JSTL
Recipe12.3.Using an Application-Wide Locale
Recipe12.4.Changing Locale on the Fly
Recipe12.5.Creating Localized Messages from an Action
Recipe12.6.Displaying Locale-Specific Text
Recipe12.7.Displaying Locale-Specific Images
Recipe12.8.Supporting Character Sets
Recipe12.9.Localizing Look and Feel
Chapter 13. Testing and Debugging
Introduction
Recipe13.1.Deploying an Application Automatically
Recipe13.2.Configuring Struts Logging
Recipe13.3.Adding Logging to Your Own Classes
Recipe13.4.Enabling Remote Debugging
Recipe13.5.Troubleshooting JSP Pages
Recipe13.6.Testing Your Actions with Mock Objects
Recipe13.7.Testing Your Actions in the Container
Recipe13.8.Testing Application Functionality
Chapter 14. Tiles and Other Presentation Approaches
Introduction
Recipe14.1.Reusing a Common Page Layout with Tiles
Recipe14.2.Extending Tile Definitions
Recipe14.3.Displaying Tiles Using a Struts Forward
Recipe14.4.Creating Tabbed Panes
Recipe14.5.Using Tiles for I18N
Recipe14.6.Using Tiles in a Modular Application
Recipe14.7.Reusing a Common Page Layout with SiteMesh
Recipe14.8.Integrating JavaServer Faces with Struts
Recipe14.9.Integrating Struts and Velocity
Recipe14.10.Integrating Struts and XSLT
Colophon
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
X
Jakarta Struts Cookbook
ISBN: 059600771X
EAN: 2147483647
Year: 2005
Pages: 200
Authors:
Bill Siggelkow
BUY ON AMAZON
Java I/O
Numeric Data
Server Sockets
Formattable
JFileChooser
The Generic Connection Framework
Metrics and Models in Software Quality Engineering (2nd Edition)
Process Maturity Framework and Quality Standards
Defect Removal Effectiveness
Defect Removal Effectiveness and Process Maturity Level
Model Assumptions
Criteria for Model Evaluation
The CISSP and CAP Prep Guide: Platinum Edition
Information Security and Risk Management
Security Architecture and Design
Physical (Environmental) Security
The Accreditation Phase
Appendix G Control Baselines
C++ GUI Programming with Qt 3
Subclassing QDialog
Creating Custom Widgets
Reading and Writing Binary Data
XML
Working with Threads
Ruby Cookbook (Cookbooks (OReilly))
Counting the Days Since an Arbitrary Date
Inverting a Hash
Seeing When a File Was Last Used Problem
Automatically Sending Error Messages to Your Email
Multitasking and Multithreading
Quartz Job Scheduling Framework: Building Open Source Enterprise Applications
Creating a Fire-Now Trigger
Using the FileScanListener
Registering Your Plug-Ins
Creating a Quartz RMI Server
Running the Quartz Cluster Nodes
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies