java - How to access path attribute of action tag (struts-config.xml) in Action or dispatch action class? -
java - How to access path attribute of action tag (struts-config.xml) in Action or dispatch action class? -
i using unspecified method of dispatchaction , there situation need know contents of path attribute of action tag in struts-config.xml, because action class beingness used 2 action paths.
eg:
<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>
i have highlighted path , type more focussing.
i wanted know path because wanted set different parameters , redirect flow accordingly.
help me please..
you can actionmapping
. action mapping passed action parameter when executes.
string path = mapping.getpath();
java struts struts-1 url-mapping struts-config
Comments
Post a Comment