Here is the code in one of my JSP file:

        <c:url value="search-by-id-action.do" var="viewItemURL">
                <c:param name="id" value="${item.personId}"/>
        </c:url>
        <a href='<c:out value="${viewItemURL}"/>'>
                <c:out value="${item.personId}" />
        </a>    

When the person ID is Chinese characters, the ID displayed right, but not on the query 
string. I guess that the url 
parameter string is not encoded in utf-8 to take Chinese characters. I don't know 
whether it is a bug or not. How I go 
around this problem?

BTW, I have a case of using custom tags for the same purpose. It works find: Chinese 
characters are correct on the 
both displaying and url.  The code is shown below.

        <td ><fmt:message key="userid.title"/> 
                <a 
href="<%=request.getContextPath()%>/search-by-id-action.do?id=<mm:mAttribute 
attribute='id'/>">
                        <mm:mAttribute attribute='id'/>
                </a> 
        </td>
 



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

Reply via email to