Hi,
I have 4 buttons on an jsp page, but what if i have to use image instead of buttons,
like <html:submit>Add</html:submit>
will have a button with Add Text, and then in my Action class i can find out which
button has been pressed,
but what if i have to use Image instead of a button, like how can i find out which
image was clicked if i have 4 images on a jsp with value="sumbit"
<input type="image" value="submit" name="login" border="0"
src="images/en/buttons/login_off.gif" width="75" height="24"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('login','','images/buttons/login_on.gif',1)" >
<input type="image" value="submit" name="signoff" border="0"
src="images/en/buttons/signoff_off.gif" width="75" height="24"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('signoff','','images/buttons/signoff_on.gif',1)" >
the above are 2 tags with same one <html:form action="/pages/selectenv">
so how will i come to know which image was clicked, what is the best way to do it
Ashish
A$HI$H
---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes