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: JSTL <c:set> question
Date Wed, 09 Jun 2004 11:25:09 GMT
What happens with either:

<c:set var="r" value="${param.content}"/>

or:

<c:set target="${rtb}" property="mymethod" value="${param.content}"/>

Quoting Mark Goking <Mark.Goking@asia.bigfoot.com>:

> 
> 
> My problem with jstl is the <c:set> storing unicode characters.
> 
> Outputting let's say chinese characters from a form post , this code
> outputs it correctly
> 
> 	<c:out value="${param.content}" escapeXml="false"/>
> 
> 
> However, storing this in a variable will result in its html equivalent
> like &#37325;&#22797; instead of chinese characters
> 
> I tried this but the result is still the same	
> 
> 	<c:set var="r"><c:out value="${param.content}"
> escapeXml="false"/></c:set>
> 	<c:out value="${r}"/>
> 
> I even used the param.content as parameter of a bean rather than storing
> it in a jstl variable and the result is also the same.
> 	<c:set target="${rtb}" property="mymethod"><c:out
> value="${param.content}" escapeXml="false"/></c:set>
> 
> Any ideas?
> Thanks

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