struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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



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


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="/" 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="/" 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message