You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith Chew <ke...@jungledrum.co.nz> on 2002/07/19 02:45:06 UTC

Hi

Why doesn't the <html:image> tag allow for the name attribute? I am trying
to use it within the iterate tag, ie

<logic:iterate id="something" name="someBean" property="someCollection">
  <html:image src="/images/image.gif" name="something"
property="someAttribute"/>
</logic:iterate>

It does not recognise the name attribute. Any ideas?
Keith


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE:

Posted by Keith Chew <ke...@jungledrum.co.nz>.
I do want the <html:image> tag. I am replacing the button with images, and I
need to capture which actions the user has pressed.

Keith


-----Original Message-----
From: Shane Witbeck [mailto:webmaster@digitalsanctum.com]
Sent: Friday, 19 July 2002 2:56 p.m.
To: Struts Users Mailing List; josephb@hereuare.com
Subject: Re: <html:image>


I think you may need to use the <html:img/> tag which is the HTML equivalent
for the <img> tag. The <html:image/> tag renders an HTML <input> tag of type
"image".

hth,

Shane


----- Original Message -----
From: "Joseph Barefoot" <jo...@hereuare.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, July 18, 2002 8:54 PM
Subject: RE: <html:image>


> I think maybe it's the "property" attribute instead?  Not sure about that,
> but you could give it a try.
>
> > -----Original Message-----
> > From: Keith Chew [mailto:keith.chew@jungledrum.co.nz]
> > Sent: Thursday, July 18, 2002 5:45 PM
> > To: Struts Users Mailing List
> > Subject: <html:image>
> >
> >
> > Hi
> >
> > Why doesn't the <html:image> tag allow for the name attribute? I am
trying
> > to use it within the iterate tag, ie
> >
> > <logic:iterate id="something" name="someBean" property="someCollection">
> >   <html:image src="/images/image.gif" name="something"
> > property="someAttribute"/>
> > </logic:iterate>
> >
> > It does not recognise the name attribute. Any ideas?
> > Keith
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re:

Posted by Shane Witbeck <we...@digitalsanctum.com>.
I think you may need to use the <html:img/> tag which is the HTML equivalent
for the <img> tag. The <html:image/> tag renders an HTML <input> tag of type
"image".

hth,

Shane


----- Original Message -----
From: "Joseph Barefoot" <jo...@hereuare.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, July 18, 2002 8:54 PM
Subject: RE: <html:image>


> I think maybe it's the "property" attribute instead?  Not sure about that,
> but you could give it a try.
>
> > -----Original Message-----
> > From: Keith Chew [mailto:keith.chew@jungledrum.co.nz]
> > Sent: Thursday, July 18, 2002 5:45 PM
> > To: Struts Users Mailing List
> > Subject: <html:image>
> >
> >
> > Hi
> >
> > Why doesn't the <html:image> tag allow for the name attribute? I am
trying
> > to use it within the iterate tag, ie
> >
> > <logic:iterate id="something" name="someBean" property="someCollection">
> >   <html:image src="/images/image.gif" name="something"
> > property="someAttribute"/>
> > </logic:iterate>
> >
> > It does not recognise the name attribute. Any ideas?
> > Keith
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE:

Posted by Keith Chew <ke...@jungledrum.co.nz>.
Nope, the resulting html looks like:

<input type="image" name="[0]someAttribute" ...>

Since the name cannot be set, we get the appended index at the beginning,
which does not help.

Maybe a bug? I am surprised that no one picked this up...

Keith


-----Original Message-----
From: Joseph Barefoot [mailto:josephb@hereuare.com]
Sent: Friday, 19 July 2002 12:55 p.m.
To: Struts Users Mailing List
Subject: RE: <html:image>


I think maybe it's the "property" attribute instead?  Not sure about that,
but you could give it a try.

> -----Original Message-----
> From: Keith Chew [mailto:keith.chew@jungledrum.co.nz]
> Sent: Thursday, July 18, 2002 5:45 PM
> To: Struts Users Mailing List
> Subject: <html:image>
>
>
> Hi
>
> Why doesn't the <html:image> tag allow for the name attribute? I am trying
> to use it within the iterate tag, ie
>
> <logic:iterate id="something" name="someBean" property="someCollection">
>   <html:image src="/images/image.gif" name="something"
> property="someAttribute"/>
> </logic:iterate>
>
> It does not recognise the name attribute. Any ideas?
> Keith
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE:

Posted by Joseph Barefoot <jo...@hereuare.com>.
I think maybe it's the "property" attribute instead?  Not sure about that,
but you could give it a try.

> -----Original Message-----
> From: Keith Chew [mailto:keith.chew@jungledrum.co.nz]
> Sent: Thursday, July 18, 2002 5:45 PM
> To: Struts Users Mailing List
> Subject: <html:image>
>
>
> Hi
>
> Why doesn't the <html:image> tag allow for the name attribute? I am trying
> to use it within the iterate tag, ie
>
> <logic:iterate id="something" name="someBean" property="someCollection">
>   <html:image src="/images/image.gif" name="something"
> property="someAttribute"/>
> </logic:iterate>
>
> It does not recognise the name attribute. Any ideas?
> Keith
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>