RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Todd G. Nist
You could try something like the below: for cancel you could do this: html:image src=images/cancel.gif border=0 property=org.apache.struts.taglib.html.CANCEL/ for the others you would need to do something like: html:link href=javascript:submit(); html:image

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Boyalla, Raveendra
Hi How can I code for onBlur event of a Text tag. Regards, Raveendra Boyalla -Original Message- From: Todd G. Nist [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 11:13 AM To: 'Struts Users Mailing List' Subject: RE: how to use an images for submit, cancel button etc

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Mattos, John
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/

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM
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... !--

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM
Any more suggestions, anybody who used an image as a button with an action defined? God why do the clients need an image for a button? KM Mattos, John wrote: Could you do the following...border=0/border=0/src=../images/onionReset.gif border=0/Reset and submit work fine, but you need to

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Galbreath, Mark
Using images as buttons is quite common. You can do this easily with java.awt.* or javax.swing.*. You can even do it in HTML, but you won't get the button push effect without JavaScript and alternate images. Explain exactly what the requirement is. Mark -Original Message- From: KM

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Pierce, Britt
Read this: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15597.html -Original Message- From: KM [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 3:00 PM To: [EMAIL PROTECTED] Subject: RE: how to use an images for submit, cancel button etc Any more

Re: how to use an images for submit, cancel button etc

2002-02-22 Thread Jim Crossley
I don't think you need the onclick events for html:image tags. I *think* they're all going to submit your form anyway. So in your action, you'll need to look at the request to see which button the user pressed. Image inputs are tricky though, because instead of just their name (or value, I

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Pierce, Britt
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

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM
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