java - Incorrect context returned from request.getContextPath() -


i have java servlet running under root context of tomcat, following context definition.

<context docbase="/local/content/tomcat/webapps/app.war" debug="0"     reloadable="false" path="" sessioncookiepath="/"> 

my url loading page localhost/ without addition path data. when call getcontextpath on request "app" whereas expect "".

i have found various questions opposite, getting "" when expecting else, not getting else when expecting ""

(example) tomcat 6 tomcat 7 causes context path stop cooperating

any appreciated.

thanks


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -