struts-user mailing list archives

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

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

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>.


----- Original Message -----
From: "Cohan, Sean" <>
To: "'Struts Users Mailing List'" <>
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
> 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:
> For additional commands, e-mail:

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

View raw message