Ok here is the chronology
The Code I posted was using buttons for cancel,
submit, reset , submit etc. I asked for help using
images instead of buttons. Someone suggested I use
something like for the cancel button(read image)
html:image src=images/cancel_button.gif
width=88 height=24
Try putting your attributes in quotes as the error message suggests.
width=88 height=24 etc
JC
-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:06 PM
To: Struts Users Mailing List
Subject: Re: FW: how to use an images for submit, cancel button etc
Strange
I took your suggestion and put both width and heigth
in qoutes, it gave me an error saying
Attribute height invalid according to the specified
TLD
and
Attribute weight invalid according to the specified
TLD
So I took out both of them and it works. Wonder why? I
am using struts 1.01.
Look at the TLD file or the documentation to find out what attributes are
allowed for the html:image.
http://jakarta.apache.org/struts/struts-html.html#image
From this, you can see that height and width are not supported attributes.
Alternatives:
1. write your own patch to the tag to do this.
Shouldn't html:image, then, be included as form:image rather than it's
current place?
It seems logical to me, but who am I to say.
- Original Message -
From: KM [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 3:34 PM
Subject: RE: FW: how
Gosh
I was reading the details at
img - Render an HTML img tag instead of
image - Render an input tag of type image
Thanks JC
KM
--- Jakkampudi, ChandraseKhar
[EMAIL PROTECTED] wrote:
Look at the TLD file or the documentation to find
out what attributes are
allowed for the html:image.
nevermind - it's actually exposed through both taglibs.
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 3:39 PM
Subject: Re: FW: how to use an images for submit, cancel button etc
Shouldn't
7 matches
Mail list logo