tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich <rw...@xsmail.com>
Subject Re: URL-escape a var with JSTL
Date Wed, 01 Mar 2006 11:27:26 GMT
I think you just need the <c:url> tag.

-R

ogjunk-taglib@yahoo.com wrote:
> Hello,
> 
> I need to URL-escape a variable in JSTL, and am not having much luck finding the way
to do it.
> 
> For example, I currently do:
> <c:set var="foo" param="${param.foo}"/>
> 
> Since "foo" param may include some funky characters, I need to URL-escape that.  So I'm
looking for something similar to:
> 
> <c:set var="foo" param="${param.foo}" escapeXml="true"/>
> 
> What's the right way to URL-encode a variable with JSTL, without resorting to scriptlets?
> Or is the only option to use escapeXml="true" when doing c:out?
> 
> Thanks,
> Otis
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 

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