That is neat - but I'm not talking about query parameters. I'm talking about
the src string itself.

-----Original Message-----
From: Danny Mui [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 15:39
To: Struts Users Mailing List
Subject: Re: dynamic img src attribute


<html:img ... />
accepts a  page (context sensitive) or a src (no mucking around).

similar to the <html:link /> tag you can provide a map to have it
generate the URL components for you,

Map linkMap = new HashMap();
linkMap.put("image", "image222311.jpg");
linkMap.put("application", "photos");

<html:img page="/image.do" name="someBean" property="linkMapProperty" />

and it will generate :

/image.do?image=image222311.jpg&application=photos

I find that neat :)

danny

Andy Kriger wrote:

>I tried asking this few days ago when my understanding of struts was
>significantly less than it is now (and I didn't phrase my question very
well
>at that).
>
>Here's what I'd like to do...
><img src='<dynamically generated path stored in a bean>' />
>with the constraint that I'd like to avoid the <% %> syntax (i want to keep
>the JSP free of these things completely for the sake of the content
>generating folks that don't know Java/JSP code).
>
>Is there a struts taglib or other taglib that allows you to do something
>like...
><img>
>       <param name='src' bean='myBean' property='beanProp' scope='beanScope'>
></img>
>
>thx
>andy
>
>
>
>--
>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]>



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

Reply via email to