Uday,

The code we have is quite complicated and does alot more than you want.  One
of our team members, Christine Robb, made a custom tag that does almost what
the submit tag does.  She took a copy of "SubmitTag.java" and instead of
outputting the code for doing a "gray button submit" in the doEndTag(), she
made it spit out the code I've shown below.

Just crack open an existing tag and it's pretty easy to figure out how to
make your own.

Good luck...

Kyle

-----Original Message-----
From: Natra, Uday [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 06:10
To: '[EMAIL PROTECTED]'
Subject: RE: How can I use a Image as a submit button using struts 


Kyle, 

Can u tell me about Ur version? I mean how U did it and if possible the code
will be greatt!!

Thanks,
Uday.

-----Original Message-----
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 6:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How can I use a Image as a submit button using struts 


That will make a gray button with the image on top of it.  I think that
looks ugly.  The version I use makes only the image the button so you can
make your web apps look alot nicer.

-----Original Message-----
From: Scott Cressler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 16:08
To: '[EMAIL PROTECTED]'
Subject: RE: How can I use a Image as a submit button using struts 


Um, I thought the <html:image> tag did this and doesn't it generate an
<input type="image"> tag?

Scott

> -----Original Message-----
> From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 4:00 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: How can I use a Image as a submit button using struts 
> 
> 
> The best way I've found of doing this is with a little javascript as
> follows:
> 
> <a href="javascript:submit();">
>       <img src="images/buttons/save.gif" name="save" border="0">
> </a>
> 
> For the purposes of using Struts we made a custom tag to 
> create these...
> 
> -----Original Message-----
> From: Natra, Uday [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 15:45
> To: '[EMAIL PROTECTED]'
> Subject: How can I use a Image as a submit button using struts 
> 
> 
> Hi,
> Can anybody tell me how I can simulate the functionality of 
> 
> <Img Type = Submit />
> I mean I need to use an Image as a submit button.
> 
> 
> Thanks,
> Uday.
> 

Reply via email to