Have a javascript function in the href tag like below. <html:link href="javascript:submitAct(1)" > <html:img src="your image.gif" /> </html:link>
The javascript function submitAct will have sth like below function submitAct(index){ if (index==0) {...} document.forms[0].submit(); } Hope this helps. Bye -Ravi Thanks & Regards, Ravi Kora [EMAIL PROTECTED] 337-739-3434(M) -----Original Message----- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 11:50 AM To: Struts Users Mailing List Subject: html:submit and Image instead of button 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 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>