I am trying to get the context path from the javax.servlet API for a
servlet when it is being initialized (init) and not when it is invoked (not
via service, doGet, doPost ..).
I know that I can get it from the request.getContextPath() method but this
can only be done when the
servlet is invoked.
public class MyServlet extends HttpServlet {
:
public void init(ServletConfig config) {
super.init(config)
// get context path for this servlet
}
}
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]