struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Cooper" <...@maxcooper.com>
Subject Re: Newbie on image
Date Fri, 06 Sep 2002 00:33:14 GMT
Yes, <html:image> is just what you are looking for. You often want to use
page= instead of src= so the tag will add your contextPath to the beginning.

The action is specified in the form. Something like this will submit to
booya.do:

<html:form action="/booya.do">
  <html:image page="/images/booya.jpg" />
</html:form>

Remember that it all turns into plain old HTML before it reaches the
browser, so it won't do anything magic. It just becomes an <input
type="image"> tag in the <form>.

-Max

----- Original Message -----
From: "Cohan, Sean" <SCohan@goSPS.com>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Thursday, September 05, 2002 2:51 PM
Subject: Newbie on image


> This must be a no-brainer, but I'm not real familiar with where to look
for
> things yet.
>
> I'd like to use a gif for a submit pushbutton.  I think I use the
> <html:image> tag and specify the gif with the src property.  Correct?  How
> do I specify what the action should be when clicked - I want it to perform
> the submit action of the <html:form>?  Thanks.
>
> --
> 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