struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "VEDRE, RANAPRATAP REDDY" <VE...@engr.sc.edu>
Subject RE: Custom Submit Button
Date Fri, 13 Sep 2002 04:37:21 GMT
You can use <html:img> tag  no that there are two tags <html:img> and
<html:image>

checkout http://jakarta.apache.org/struts/struts-html.html#img

-Rana

-----Original Message-----
From: Aladar The Dinosaur [mailto:aladar@telocity.com]
Sent: Friday, September 13, 2002 12:33 AM
To: Struts Users Mailing List
Subject: Custom Submit Button


Hello,

I'm planning on using custom image (submit) buttons with the HTML forms
while utilizing struts form beans. However, I can't seem to figure out how
to do it.

For example, on a plain HTML file I would use

<FORM action="/zipsearch.do" method="post" name="myForm">

<INPUT name="field1">

<INPUT name="field2">

<A HREF="javascript:document.myForm.submit();"><img src="submit.gif"></A>



Now, with struts ...

<html:form action="/zipsearch.do" method="post">

<html:text property="field1">

<html:text property="field2">

<html:submit value="Submit" />



Can someone help me how I can make use of the custom "submit.gif" for a
submit button?



Thank you.

Scott






--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message