I'm having problems displaying Unicode escaped characters with html and
bean tags.    When I display unicode characters with html and bean tags
the ampersand is being escaped so the html is displaying the escape
sequence rather than the character.

Example (these are Korean characters) JSP snippet:
...
                <td class="text">
                    <html:text property="description"/><br>
                    <bean:write name="GroupForm"
property="description"/><br>
                    <bean:define name="group" id="thisGroup"
type="com.qualcomm.bds.groupmgr.BaseGroup"/>
                    <%@page
import="com.qualcomm.bds.groupmgr.BaseGroup"%>
                    <%=((BaseGroup)thisGroup).getDescription()%><br>
                </td>
...
HTML (view source):
...
                <td class="text">
                <input type="text" name="description"
value="&amp;#52629;&amp;#44396;&amp;#50773;"><br>
                &amp;#52629;&amp;#44396;&amp;#50773;<br>
                &#52629;&#44396;&#50773;<br>
                </td>
...

The html:text and bean:write tags are displaying the characters as
escape sequences on the page (because the ampersand is escaped).  The
scriptlet is displaying the character properly.  I suspect the tags are
running the data through some type of parser and the ampersands are
being escaped.  Is there a way around this?  My app is nearly ready to
go to test and I'm just finding this issue.  I use html and bean tags
heavily on all my pages so I really need to solve this.

A couple notes.  I am using charset=WINDOWS-1252 in my JSP pages.  The
database is not Unicode so I can't seem to get UTF-8 working properly.
I'm using Tomcat 4.1 and Struts 1.1.

Any help appreciated.
Gary



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

Reply via email to