Hello All!
Stephen Ince <[EMAIL PROTECTED]> write to tomcat-dev:
SI> I am trying to get the context path ... for a
SI> servlet when it is being initialized (init)
SI> Here is the solution that I implemented.
SI> s_contextPath =
SI> config.getServletContext()
SI> .getResource("/").getPath();
SI> if ( s_contextPath.equals("/") ) s_contextPath = "";
I've also been interested in this: anyway,
context path should be a property of servlet context,
then we should be able to get it.
Is the way Stephen has done this a good way?
-Anton
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]