Try html:img, instead.

http://struts.apache.org/userGuide/struts-html.html#img

chad

-----Original Message-----
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 10:27 AM
To: user@struts.apache.org
Subject: html:XXXXXX question


Hello,
 
I am struggling with using the html:XXXX tag, and the docs are just
confusing me.  
 
I have an application that I want to use the html:image tag. But the images
need to have a height and width set to them. So I tried this:
      <html:image page="/images/equipment.gif" height="1" width="342"
alt=""/><BR>
 
Error said height and width are not valid attributes:
 
I need to show an image (used to use <img src="/images/equipment.gif"
height="1" width="342">) This image does not need to be a url or anything. 
 
How can this be accomplished?
 
PS, I did see I could use resource bundles, but I do not see the gain in my
situation.
 
 
Thanks,
Scott

Reply via email to