You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts fox <st...@yahoo.com> on 2004/01/27 20:45:01 UTC

Action mappings

I t seems Struts lets you use action mappings that it figures out and forwards for you, but I have had no luck testing this.


<action-mappings>

<action path="/setUpEmployeeForm"
type="net.strutstest.SetUpEmployeeAction"
name="employeeForm"
scope="request"
validate="false"
>
<forward name="continue" path="/steve"/>
</action>



<action path="/steve"
type="net.strutstest.SteveAction"
name="employeeForm"
scope="request"
validate="false"
>
<forward
name="continue"
path="/employeeForm.jsp"/>
</action>


So basically SetUpEmployeeAction should be called when the user submits.  Then SetUpEmployeeAction forward to SteveAction and then that forwards to employeeForm.jsp. It errors out trying to load the resource SteveAction, but I see nothing else I need to declare in any properties file or resource file. Struts should be able to do this from what I've read.


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!