tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiroshi Iwatani <HGA03...@nifty.ne.jp>
Subject JSP forward request parameter and encoding
Date Thu, 01 Apr 2004 09:17:49 GMT
In the following JSP page, parameter value is a three Japanese character string:

--- aJsp.jsp ----------------------------
...
...
<%
String destination = "/aServlet";
%>
<jsp:forward page="<%= destination %>">
  <jsp:param name="para" value="愛王よ" />
</jsp:forward>
...
------------------------------------------

--- aServlet.java ------------------------
...
public void doGet( ...... ){
  ...
  ...
  String s = request.getParameter("para");

-------------------------------------------

In the above scenario, Tomcat(5.x) returns "???"(%3f%3f%3f) in String s,
whereas Resin(2.1.12) returns correct String. Tomcat behaves right only
when the parameter value is an English ASCII string.

What should I do for Tomcat to return correct Japanese string?

Init parameter javaEncoding does no effect.


TIA

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about your
country? *for our better karma*
---------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message