Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

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" />
0
Ilan_Moorthy
Asked:
Ilan_Moorthy
1 Solution
 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now