Dongwon,

There are at least a couple of ways to do this in Struts.  Here are two:

Ex 1: To pull the image from a url relative to the base url
<html:form action="/someAction.do" method="POST">
  User Name: <html:text property="username" size="15" />
   <p>
  <html:image page="/images/submit_button.gif" />
</html:form>

Ex 1: To pull the image path a key
[my.submit.button=/myapp/images/submit_button.gif]in the
ApplicationResources.properties:
<html:form action="/someAction.do" method="POST">
  User Name: <html:text property="username" size="15" />
   <p>
  <html:image srcKey="my.submit.button" />
</html:form>

Regards,
John

----- Original Message -----
From: "Park, Dongwon" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 3:06 PM
Subject: [Q] Using html:image tag for submit button


> All,
>
> I am trying to use <html:image> for submit button but it is not working
for
> me.
> Anybody has some simple example or know better way to make submit button
> with image ?
>
> Dongwon Park
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to