ABSTRACT

A Struts action that points to a non-existant form-bean will not be mapped correctly.

EXPLANATION

Struts uses form-bean entries to map HTML forms to actions. If the name attribute in an <action> tag does not correspond with the name of a form-bean, the action cannot be mapped and indicates either a superfluous definition or a typographical error.

Example 1: The following configuration does not contain a mapping for bean2.


<form-beans>
<form-bean name="bean1" type="coreservlets.UserFormBean" />
</form-beans>

<action-mappings>
<action path="/actions/register1" type="coreservlets.RegisterAction1" name="bean1" scope="request" />
<action path="/actions/register2" type="coreservlets.RegisterAction2" name="bean2" scope="request" />
</action-mappings>

REFERENCES

[1] Apache Struts 1.3 Specification