You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Mark Goking <Ma...@asia.bigfoot.com> on 2004/06/09 09:35:10 UTC
JSTL question
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 重复 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
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: JSTL question
Posted by Kris Schneider <kr...@dotech.com>.
What happens with either:
<c:set var="r" value="${param.content}"/>
or:
<c:set target="${rtb}" property="mymethod" value="${param.content}"/>
Quoting Mark Goking <Ma...@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 重复 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 <ma...@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