tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30141] New: - GET posting fails on JISAutoDetect Character Encoding
Date Fri, 16 Jul 2004 10:09:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30141

GET posting fails on JISAutoDetect Character Encoding

           Summary: GET posting fails on JISAutoDetect Character Encoding
           Product: Tomcat 4
           Version: 4.1.27
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: j.banzhaf@jens.co.jp


I took a look at similar reports, and I think this is different enough to
warrant attention.

Running on tomcat 4.1.27, submitting df.jsp as a POST gives output, but as a GET
gives nothing.    This is not the case for other character encoding types such
as SJIS, ISO-whatever, but only JISAutoDetect.

Please let me know what you think, thank you very much.


=========dumbform.jsp==========
<%@ page
     contentType="text/html; charset=iso-2022-jp"
     pageEncoding="iso-2022-jp"
     import = "
        java.io.*                       ,
        java.net.*                      ,
        java.lang.*                     ,
        java.util.*                     ,
        java.text.*                     ,
        javax.servlet.*                 ,
        javax.servlet.http.*            ,
        javax.servlet.jsp.*             "

     session="true"

%>
<%
 request.setCharacterEncoding("JISAutoDetect");
%>
<HTML>
<BODY>
<%
   String kee = "";
   String valu = "";

Enumeration eeee = request.getParameterNames();
 while ( eeee.hasMoreElements() ){
 kee = (String)eeee.nextElement();
 valu = request.getParameter(key);
%>
 <%=kee%>  <%=valu%><BR>
<%
}

%>
</BODY>
</HTML>

============df.jsp============
<HTML>
<BODY>

<form name="hello" method="post" action="dumbform.jsp">
<input type="hidden" value="35" name="1">
<input type="submit" value="post">
</form>

<form name="hello2" method="get" action="dumbform.jsp">
<input type="hidden" value="35" name="2">
<input type="submit" value="get">
</form>

</BODY>
</HTML>

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


Mime
View raw message