On 19/07/2021 20:55, Jerry Malcolm wrote:
I have a servlet in the ROOT context mapped to "/".  I'm using request.getPathInfo() to get everything after the ".com/" in the URL. But no matter what is added to the url after .com/, getPathInfo() always returns null.  I printed out getRequestURL(), and it shows everything. I can parse the path out of getRequestURL().  But I'm curious why getPathInfo() is always null.  The docs say it returns null if there's no path info.  But that's not the case.  I'm on TC 9.0.16.

Tomcat's behaviour is correct since the servlet is the "default" servlet.

Please see section 12.2 of the Servlet 4.0 specification.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to