it in Dispatcher servlet. If I
am deploying the context in / , I should get it as /
Context path=/ docBase=webapps/MyWebApp.war
debug=0 privileged=true
/Context
Thanks in advance
--
View this message in context:
http://www.nabble.com/getting-context-path-name-tf3362065.html#a9352868
request.getContextPath() should supply what you need. If the webapp is
the ROOT webapp, it will return an empty string. That just makes it
easy to write stuff like:
img src=${pageContext.request.contextPath}/images/myMasthead.jpg /
If you really need the ROOT webapp to return /, then you'll
: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/getting-context-path-name-tf3362065.html#a9368900
Sent from the Tomcat - User mailing list archive at Nabble.com