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: Use JSTL to output a path in the containor
Date Wed, 17 Sep 2003 18:22:17 GMT
Seems like this should work:

<img src="<c:url value="/${sessionScope.member.photoPath}"/>" ...>

Please give an example of what you've tried with <c:url> and what the resulting
output was.

Quoting Vernon Smith <vwu98034@lycos.com>:

> 
> I need to out put a path inside of the containor. The path is 
> 
> <img src ="<%= request.getContextPath() + "/" +
> ((Member)request.getSession().getAttribute("member")).getPhotoPath() %>"
> align="middle">
> 
> in the script form. If I use the c:out tag, the JSP page path is attached to
> the front of the path. I also have tried the c:url and have the same result.
> 
> 
> How I can get the path right using a JSTL tag?
> 
> Thanks,
> 
> Vernon
> 
> 
> ____________________________________________________________
> University of Phoenix Online. Free Information - Online Classes
>
http://r.hotbot.com/r/lmt_uopo/http://servedby.advertising.com/click/site=563632/mnum=125825
> This offer applies to U.S. Residents Only

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

Mime
View raw message