tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: Runtime expressions with <img:image>
Date Wed, 17 May 2006 13:55:14 GMT
Hassan Schroeder wrote:
> Robert Bowen wrote:
> 
> 
>>No, "path = ${path} does not work. I am using JSTL 1.0 and Servlet 2.4.
>>
>>So can I do this? ...Without changing versions of JSTL / Servlet?
> 
> 
> short answer: no. Though I'm not sure where that <img:... tag comes
> from, haven't used it myself.

Well, "no" is maybe too short an answer. At worst you should be able to do 
something like:

<img:image src='<%= (String)pageContext.getAttribute("path") %>'/>

> But if you're using a 2.4 deployment descriptor -- check what's at
> the beginning of your application's web.xml -- upgrading to JSTL 1.1
> is as simple as downloading and replacing a couple of jar files...
> 
> And well worth it, IMO -- replacing all those `<c:out value="${path}"/>`
> statements with `${path}` cleans up a workspace most wonderfully :-)

Agreed. If you can upgrade, it's a good idea for a number of reasons.

> FWIW!

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message