How about using the java capabilities to store unicode string and just let the 
bean:write do the necessarry convertion to html form?

String myStr= "\u308f\u305f\u3057";
<bean:write name="myStr"/>

see
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#44591
for details on unicode characters in source code.

-- 
David Delbecq
Royal Meteorological Institute of Belgium
Le Mercredi 13 Avril 2005 14:49, Jeff Beal a Ãcrit :
> The <bean:write/> tag, by default, escapes any HTML special
> characters, like the '&' in your case.  This can be an important
> security consideration to prevent malicious users of your site from
> injecting HTML markup into your website.  To override this behavior,
> set filter="false":
>
>  <bean:write filter="false" name="myStr"/>
>
> On 4/13/05, Pham Anh Tuan <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I got a problem when I write out data on jsp.
> >
> > I have a String = "&#12431;&#12383;&#12375"
> >
> > which means ããã in Japanese
> >
> > I use <bean:write name="myStr"/>
> >
> > it only shows "&#12431;&#12383;&#12375"
> >
> > plz show me how to solve this problem.
> >
> > thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to