Thanks Eric & Marcelo. I tried <html:image...> and it seems to work fine. I used <a href="javascript:document.forms[0].submit();"> a lot in the past (for img rollover) but thought to try the "Struts" way.
Thinh -----Original Message----- From: Eric Rizzo [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 27, 2001 9:01 AM To: [EMAIL PROTECTED] Subject: Re: Use an image for submit button Thinh Doan wrote: > I'd like to replace the following with an image instead of a button: > <html:submit property="submit" value="Login" > styleClass="verdanaCAPCopy"/> I just learned this the other day myself. For some reason, an <input type="image" ...> will submit the form when clicked. So just use the Struts tag <html:image page="relativePathToImageFile" ...> in your JSP. Also noted that someone posted yesterday the following that might be an alternative: > You can use <a href="javascript:forms[0].submit();"> to make > link, which submits. (I am not sure, whether the syntax above is ok) HTH, Eric -- Eric Rizzo, Software Engineer OpenNetwork Technologies http://www.opennetwork.com ----------------------------- I embrace my personality flaws, for without them I might have no personality at all.

