Struts, using html:image link to submit

I have a jsp page using struts tags...  i have two buttons  a submit and a cancel.
in the action how do I find out which image was clicked by the user?


<html:image page="/images/btn_Submit.gif" property="submit" value="submit" alt="submit" />
<html:image page="/images/btn_Cancel.gif" property="cancel" value="cancel" alt="cancel" />
Ilan_MoorthyAsked:
Who is Participating?
 
boonlengCommented:
Image name will be ended with '.x' and '.y'.
Eg. request.getParameter("submit.x") and request.getParameter("submit.y")

Regards,
Boon Leng
0
 
bloodredsunCommented:
or you could have an onClick() dhtml/javascript handler
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.