Versions Compared

Key

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

...

struts-config.xml (The Struts Configuration File)

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

Each of your Actions must be configured within the action-mappings section of the struts-config.xml and each action path must exactly match a bean name within action-servlet.xml. This It is the bean name within the action-servlet.xml that maps the bean name to the actual Action.

The struts-config.xml is also where /EntryAction is configured to chain to one of your actions Actions.

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

...