I have two action tags defined in a single action class. Each action
has it's own action-forward element. When the struts-config.xml is
generated it generates two action elements but each action element has
both action forwards (each should only have one).
/**
* @struts.action
* path="/HomeLink"
*
* @struts.action-forward
* name="success"
* path="/UserSearch.jsp"
*
* @struts.action
* path="/UserCreateLink"
*
* @struts.action-forward
* name="success"
* path="/UserCreate.jsp"
*
*/
generates this:
<action
path="/HomeLink"
type="foo.bar.SuccessAction"
unknown="false"
validate="true"
>
<forward
name="success"
path="/UserSearch.jsp"
redirect="false"
/>
<forward
name="success"
path="/UserCreate.jsp"
redirect="false"
/>
</action>
<action
path="/UserCreateLink"
type="foo.bar.SuccessAction"
unknown="false"
validate="true"
>
<forward
name="success"
path="/UserSearch.jsp"
redirect="false"
/>
<forward
name="success"
path="/UserCreate.jsp"
redirect="false"
/>
</action>
but I want this:
<action
path="/HomeLink"
type="com.qualcomm.bds.usermgr.web.action.SuccessAction"
unknown="false"
validate="true"
>
<forward
name="success"
path="/UserSearch.jsp"
redirect="false"
/>
</action>
<action
path="/UserCreateLink"
type="com.qualcomm.bds.usermgr.web.action.SuccessAction"
unknown="false"
validate="true"
>
<forward
name="success"
path="/UserCreate.jsp"
redirect="false"
/>
</action>
Is there a way to identify that a forward tag belongs with a specific
action so when the struts-config.xml is generated each action element
only has a single forward associated with it?
Thanks in advance,
Gary