Versions Compared

Key

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

...

For each Action that accepts input from the user, there should be an ActionForm (e.g., SearchCriteriaForm) attached to its associated action path (e.g., /SearchPeople).  If the input is going to be validated via the Struts Validator Framework a jsp/tile (e.g., oasskeleton.enter_search_criteria) to go back to in case of errors should be specified via the action input attribute. This This is a good place to talk about scope.

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.

...