All,
I have a Jsp with two button in one form. The button click
determines what page the users sees next.
How do i detect which button was clicked.
i tryed to change the hidden field before submitting the form
but that is not working.
It is driving me nuts !!
I have :
<html:form action="/CreateTask.do" method="GET">
<html:hidden property="dispatch" value="error"/>
<h1><bean:message key="title"/></h1>
<html:button property="button1" value="success1" onclick="submit()"/>
<html:button property="button2" value="success2" onclick="submit()"/>
</html:form>
and in my Action.java :
DynaActionForm dynaForm = (DynaActionForm)form;
String strAction = (String)dynaForm.get("dispatch");
System.out.println("strAction= " + strAction);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]