You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

struts-config.xml (The Struts Configuration File)

Each of your ActionForms must be configured within the form-bean section.

Each of your Actions must be configured within the action-mappings section and each action path must exactly match a bean name within action-servlet.xml. This is also where /EntryAction is configured to chain to one of your actions.

For each action that accepts input from the user there should be a form attached to it, and a jsp/tile to go back to in case of errors should be specified as the input attribute (see SearchPeople for an example).

Your app can have multple entry points. Each of these should be like the EntryAction example provided.

For actions that don't need input (hidden or visible), they should not have a form.

  • No labels