struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Newsgroup (@Basebeans.com) <str...@basebeans.com>
Subject Re: image button question
Date Fri, 26 Apr 2002 18:40:02 GMT
Subject: Re: image button question
From: "Robert Gottofrey" <rgottofrey@bluewin.ch>
 ===
Britt,

try using the 'page' attribute instead of 'src', something like:
<html:image page="/images/<%=terrbutton1%>" property...

Robert

"Monker" <britt.pierce@pioneer.com> wrote in message
news:aa4d2s$mus$1@basebeans.com...
> Hello,
>
> I am trying to create an image button and set the img src within the
action
> class.  When I do this, I get a broken link to the picture...but, the link
> back to the action class works.  I can display the pic as a regular image
> (not a button), so I know the property exists and is the correct value.
> Here is the code:
>
> <TD width="138" align="left">
> <html:image src="/images/<%=terrbutton1%>" property="territory1"
> value="terr1"></html:image></TD>
> <TD width="340"><%= displayterritory1 %> </TD>
>
> Can I not use a property like this within an image tag?  Is there a simple
> work around?  I am using the current release of Struts, not the nightly
> update or the Beta...and WSAD 4.02.
>
> Thanks,
>
>     Britt
>
>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message