Jakarta Struts Cookbook

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] [Z]

action chaining, avoidingAction class

     abstract base class, creating     ActionErrors, creating from example     ActionMessages, creating from example

     alternate URL submission example     chaining, avoiding 2nd     ChangeLocaleAction, changing current locale example     changes to configuration files

    custom

         error handling         error types example         properties mechanisms

     data, accessing directly from

     defined

     disabling selectively

    exception handling         code, removing

         simplifying     file upload processing

     generating action elements with XDoclet    HTTP response

         from servlet or JSP through Struts 2nd         generating 2nd     informational messages, reporting from         formatting

     linking directly between

     LocaleAction

     localized messages, creating from

    mappings

         combining similar to single generic

         custom action

         path attributes pre-pend rule

         processing related operations

         single generic with wildcards

         validation enabled for

         wildcards (1.2)

    messages

         avoiding double-posting         formatting         session-scoped

     mock objects, testing with

     module switch at runtime

     related operations managed by single class         with localized values         with varying attributes     request forwarding 2nd     requests to, checking for login

    security         policy, applying to all

         restricting access         using a base class     tabular data, sorting example

     thread-safe construction of    tokens         saving example         validity example

     try...catch blocks, reducing number of

     user input-;driven target actions     Version 1.1 enhancements     wizard-style page flow

action elements

     Actions, generating with XDoclet

     attributes accepting wildcard-matched strings

     form URL paths specified by     no Action class correspondence

     reuse with action mappings     Spring DelegatingActionProxy, using

     struts-config.xml, generating with XDoclet     wildcard characters supported

     wildcard path attribute action relaying Action.execute() method ActionError class, deprecated (1.2)

ActionErrors from an Action example

ActionErrors object

     displayed using <html\:errorsÚ\\> tag

     preserving existing with custom ExceptionHandler

ActionForm class

     Boolean property set to false

     changes to configuration files

     create declaratively in struts-config.xml file

     custom with validation

     defined

    DynaActionForm class [See DynaActionForm class]

     dynamic, creating

     Employee example     extended by ActionForm JavaBean     favorite language/IDE

     fields, validation across all

    form properties

         business object, copying to         list-backed         map-backed         runtime-determined     FormFile property example

     hand-coded     Java source code, generating with XDoclet

     Lazy Dynabean (Pemberton)     overriding with validate( ) method     populated prior to validation, problems with

     population samples (request pair, method call)     PropertyUtils, using with example     reset( ) method     reset() method

    session-scoped

         problems         reflecting changed data on form resubmission         wizard-style interfaces

     validate() method

     validations, adding custom to

     value objects, populating from

ActionMapping class     custom extension for disabling actions

     struts-config.xml in ActionMessage class replaces ActionError class (1.2)

ActionMessages from an Action example ActionServlet

     new action linking with mappingannotations     not all elements of struts-config.xml based on     processing with XDoclet

Ant

     build script

         development tasks done with

     building and deploying applications with

     WAR file, building with

     web site for

applications

    Ant

         build script

         building and deploying with

     character sets, supporting

     client sessions, tracking

     constants on JSP pages    data         loading initial with plug-ins

         refreshing

     debugging, from remote server

         JPDA     decoupling from external business services     default module     developing     file upload, allowing

     functionality testing     images, locale-specific display

     Java classes for plug-ins, integrating     JSP, converting to Struts     JSTL tags

    locale         changing on the fly         look and feel based on         overriding browser's language setting

         text, specific display for

     modules, factoring into (1.1)     page layout, reusing with Tiles     scope attributes storage context

    security

         container management of

         container mixed management of

         managed across entire application     servlet contexts

     Spring framework, integrating with Struts         Actions configuration

         conversion issues         MemoryUserDatabase configuration

         sample uses         web site for     startup tasks, performing    Struts

         1.0 to 1.1, migrating from

         1.1 to 1.2, upgrading from

     testing without redeploying

    unit testing [See unit testing]

     uptime tracker object example

     URLs, limiting access to by role and profile

    users

         alternate destinations, forwarding to

         logins, monitoring

         modules, forwarding to

     XML data, loading at startup

arithmetic support, EL

authentication and authorization, security 2nd authentication mechanism, implementing automatic login

     cookie authentication filter example

Категории