... and if you happen to be able to use the JSTL ... David Karr wrote a
taglib for struts which should soon be in the contrib directory. It's
called Struts-EL, and it incorporates the JSTL's EL engine into the
standard Struts tags we all know and love. Using his taglib, you could
do the
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
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
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
PROTECTED]]
Sent: Thursday, September 19, 2002 16:04
To: Struts Users Mailing List
Subject: RE: dynamic img src attribute
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
, September 19, 2002 1:03 PM
To: Struts Users Mailing List
Subject: RE: dynamic img src attribute
When I tried something like that, the bean:write .../
string ended up in
my HTML img src - it wasn't interpreted (that is what I'd
expect to happen
since XML isn't supposed to have tags w
: Thursday, September 19, 2002 3:03 PM
To: Struts Users Mailing List
Subject: RE: dynamic img src attribute
When I tried something like that, the bean:write .../
string ended up in
my HTML img src - it wasn't interpreted (that is what I'd
expect to happen
since XML isn't supposed to have tags w
7 matches
Mail list logo