【发布时间】:2014-06-18 07:07:51
【问题描述】:
我使用的是DispatchAction的未指定方法,有一种情况需要知道struts-config.xml中action标签的path属性的内容,因为这个Action类被用于两个动作路径。
例如:
<action **path="/auditor/adminOtherInfo"** **type="org.sae.aab.struts.action.OtherInfoAction"**
scope="request" name="AdminOtherInfoForm" parameter="method" validate="false">
...
</action>
<action **path="/auditor/otherInfo"** **type="org.sae.aab.struts.action.OtherInfoAction"**
scope="request" name="OtherInfoForm" parameter="method" validate="false">
...
</action>
我已突出显示路径和类型以更集中。
我想知道路径,因为我想设置不同的参数并相应地重定向流程。
请帮帮我..
【问题讨论】:
标签: java struts struts-1 url-mapping struts-config