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
Post a Comment