tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Anderson <a...@surf.co.nz>
Subject HttpServletRequest getPathInfo() doesn't decode properly?
Date Mon, 20 Jan 2003 08:07:03 GMT
I can't get Tomcat 4.1.18 to decode path info Correctly.
This works fine with Tomcat 4.0.6. I'm running Tomcat with
JDK 1.4.1 on Win2K.

Here is an example:

public class TestServlet extends HttpServlet {

  public void doGet(HttpServletRequest req, HttpServletResponse res) 
      throws ServletException, IOException {

    res.getOutputStream().print(req.getPathInfo());
    res.getOutputStream().close();

  }
}


When I invoke the servlet with 
http://localhost:8080/test/TestServlet/x/%E4/x
req.getPathInfo() should return /x/รค/x (the second element in the path
should the scandinavia a with two dots above it) but I get /x/?/x

I wonder what the problem is?

Thanks,
Andreas

_____________________________________________________________
Surf before you surf - http://www.surf.co.nz

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP &
more! http://www.everyone.net/selectmail?campaign=tag

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


Mime
View raw message