Hi,
I'm using
Struts 1. In my ActionForm class, I have getters and setters to store the fields submitted with the form, for example,
public
String getAccountid() {
return accountNum;
}
public void setAccountid(String p_accountNum) {
this.accountNum = p_accountNum;
}
How can I tell, from within one of those methods, which URL/action a user visited? In my struts-config.xml file I have two actions that submit to the same bean
<action path="/pcFlow"
type="com.myco.regui.struts.accounts.AccountsAction"
scope="request"
name="REAccountLookUpBean"
validate="true"
input="/jsp/pcAccountLookup.jsp">
</action>
<action path="/hhFlow"
type="com.myco.regui.struts.accounts.AccountsAction"
scope="request"
name="REAccountLookUpBean"
validate="true"
input="/jsp/hhError.jsp">
</action>
I would like to figure out which action was invoked. Thanks for your help, - Dave