Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scope should be "request" unless there is a need to maintain user entered values between pages (e.g., search help takes user off page and back again and what they've entered up to that point should still be there), in which case scope can be "session" but remember to reset the form variables on new entry requests (see ActionForm)

The struts-config.xml is also where /EntryAction is configured to chain to one of your Actions (e.g., the Action associated with the bean name /EnterSearchCriteria). Your app can have multple entry points. Each of these should be like the /EntryAction example below and their action-servlet bean name/ struts-config bean path must be in the format XXXEntryAction (where XXX is some name you choose), otherwise the session restart mechanism will cause your app to loop infinitely.

...