dkim18
asked on
Detecting button value
Hi experts,
Is there any way that I can detect button's value attribute in html:submit? for example:
<td align="center"><html:submi t property="method" value="Save"/></td>
<td align="center"><html:submi t property="method" value="Update"/></td>
How do detect whether user press save button or update button in side of ActionForward?
thx,
Is there any way that I can detect button's value attribute in html:submit? for example:
<td align="center"><html:submi
<td align="center"><html:submi
How do detect whether user press save button or update button in side of ActionForward?
thx,
ASKER
That is not my intention here. ;-) I am asking this to solve specific task.
Probably I can use javascript and java code inside of jsp, but I am looking for better way of doing this.
Probably I can use javascript and java code inside of jsp, but I am looking for better way of doing this.
ASKER
Hm...calling execute method inside of save/update method is a good idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://husted.com/struts/tips/003.html