K
Kimba
Hi everyone,
I have the following problem:
My web application is loading a Servlet on start-up. This servlet
initializes the web-application's environment inside the
init(ServletConfig config) method. Now, at this point in time I'd like
to dynamically get the web-app's context path. Unfortunately the
ServletContext doesn't have the getContextPath() method in servlet
specification 2.4 only in 2.5. And since the init(...) method doesn't
have a HttpServletRequest I have no chance of retrieving the servlet's
context path at initialization time??
Any suggestions on that??
Thanks,
Steffen
I have the following problem:
My web application is loading a Servlet on start-up. This servlet
initializes the web-application's environment inside the
init(ServletConfig config) method. Now, at this point in time I'd like
to dynamically get the web-app's context path. Unfortunately the
ServletContext doesn't have the getContextPath() method in servlet
specification 2.4 only in 2.5. And since the init(...) method doesn't
have a HttpServletRequest I have no chance of retrieving the servlet's
context path at initialization time??
Any suggestions on that??
Thanks,
Steffen