Thanks for all the help guys
KM --- "Pierce, Britt" <[EMAIL PROTECTED]> wrote: > If you look into the code, an 'image' button > inherits from the 'submit' > button. Therefore, an <html:image.... /> tag > submits the form to the > server. > > Not sure how the code below works though...It's not > how I would do these > buttons...Not that I'm any less of a newbie to this > then anybody else on > this list... > > Again, please read this, it explains how to use > image buttons: > > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15597.html > > > > > -----Original Message----- > From: Mattos, John [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 22, 2002 2:58 PM > To: '[EMAIL PROTECTED]' > Subject: FW: how to use an images for submit, cancel > button etc > > > Hmm. > > I'm actually a bit confused. I don't see any > <html:image> tags in the code > snippet you provided, conly <html:submit> and > <html:cancel>, which are > buttons. > > Can you send a bit more of the JSP? > > As far as the image submitting the form, I don't > know of any other way > without using JavaScript (not that it doesn't exist, > I'm just not aware of > it) > > John Mattos > Sr. Developer and Architect > iNDEMAND > 345 Hudson St. 16th Floor > New York, New York > 10014 > > -----Original Message----- > From: KM [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 22, 2002 3:33 PM > To: [EMAIL PROTECTED] > Subject: RE: how to use an images for submit, cancel > button etc > > > Thanks for the tip Mattos, However javascript is not > something the end client likes in this case, so > trying > to minimise using javascript. Any clue as to why the > code I posted is not working? > > Thanks for your time > > KM > --- "Mattos, John" <[EMAIL PROTECTED]> wrote: > > Could you do the following... > > > > <!-- JSP Snippet--> > > <html:image onclick="javascript:submit();" > > src="../images/onion.gif" > > border="0"/> > > > > <html:image onclick="../whereIWasBefore.jsp" > > src="../images/onionCancel.gif" > > border="0"/> > > > > <html:image onclick="javascript:reset();return > > false;" > > src="../images/onionReset.gif" border="0"/> > > <!-- End 'o snippet --> > > > > > > Reset and submit work fine, but you need to > > implement the cancel to do > > whatever you need it to do. > > > > Is that overly simplistic? > > > > John Mattos > > Sr. Developer and Architect > > iNDEMAND > > 345 Hudson St. 16th Floor > > New York, New York > > 10014 > > > > -----Original Message----- > > From: KM [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 22, 2002 10:27 AM > > To: Struts Users Mailing List > > Subject: how to use an images for submit, cancel > > button etc > > > > > > Hi > > > > I am trying to develop a page where the user has > to > > select options from a drop down box and either > > clicks > > submit or cancel. The submit and cancel options > are > > images instead of a button > > > > Following is my code > > > > > > <tr> > > <td align="right"> > > <logic:equal name="subscriptionForm" > > property="action" > > scope="request" value="Create"> > > <html:submit> > > <bean:message key="button.save"/> > > </html:submit> > > </logic:equal> > > <logic:equal name="subscriptionForm" > > property="action" > > scope="request" value="Delete"> > > <html:submit> > > <bean:message key="button.confirm"/> > > </html:submit> > > </logic:equal> > > <logic:equal name="subscriptionForm" > > property="action" > > scope="request" value="Edit"> > > <html:submit> > > <bean:message key="button.save"/> > > </html:submit> > > </logic:equal> > > </td> > > <td align="left"> > > <logic:notEqual name="subscriptionForm" > > property="action" > > scope="request" > value="Delete"> > > <html:reset> > > <bean:message key="button.reset"/> > > </html:reset> > > </logic:notEqual> > > > > <html:cancel> > > <bean:message key="button.cancel"/> > > </html:cancel> > > </td> > > </tr> > > > > here instead of the save, reset, cancel buttons I > > would like to user save.gif, reset.gif, cancel.gif > > etc > > .How to set up struts to use this.. > > > > Any tips on how to do this is appreciated > > > > KM > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Sports - Coverage of the 2002 Olympic Games > > http://sports.yahoo.com > > > > -- > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > === message truncated === __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>