struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Weis <djw...@sjdjweis.com>
Subject RE: dynamic img src attribute
Date Thu, 19 Sep 2002 20:03:44 GMT

On Thu, 19 Sep 2002, Andy Kriger wrote:
> That is neat - but I'm not talking about query parameters. I'm talking about
> the src string itself.

<img src="<bean:write name="BEAN" property="property"/>">

should do it.

dave

> >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>
-- 
Dave Weis             "I believe there are more instances of the abridgment
djweis@sjdjweis.com   of the freedom of the people by gradual and silent
                      encroachments of those in power than by violent 
                      and sudden usurpations."- James Madison


--
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