tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: servlet spec violation?
Date Tue, 25 Jan 2011 12:13:27 GMT
2011/1/25 mikewse <mikewse@hotmail.com>:
>
> Trying out a simple servlet on Tomcat 6 and 7:
(..)
> and sending a request:
>        GET /app

AFAIK, usually Tomcat will respond with 302 redirect to /app/ and the
second request will be GET /app/.  So, one question is why it is not
happening in your case. I suspect that it might be if there is no
welcome file at the root of the webapp.

> yields the following values on the request:
>        requestUri = "/app"
>        contextPath = "/app"
>        servletPath = ""
>        pathInfo = "/"
> This seems to violate the rule:
>        requestUri = contextPath + servletpath + pathInfo
> on page 28 of the Servlet 2.5 spec (pathInfo should be null).

Looks like it. Though I have never seen such requests - as said above.


Best regards,
Konstantin Kolinko

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


Mime
View raw message