tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikewse <mike...@hotmail.com>
Subject servlet spec violation?
Date Tue, 25 Jan 2011 00:05:36 GMT

Trying out a simple servlet on Tomcat 6 and 7:
	<servlet>
		<servlet-name>pathservlet</servlet-name>
		<servlet-class>LoggingServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>pathservlet</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>
mounting the application on the context path:
	/app
and sending a request:
	GET /app
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).
Or am I missing something?

Best regards
Mike Wilson
-- 
View this message in context: http://old.nabble.com/servlet-spec-violation--tp30748094p30748094.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message