Originally posted by vishwanath nadimpally:
I didn't mean from the context listeners. I just said request.getContextPath() is a way to get the context.
Right, but the original poster was looking for a way to get it from a context listener:
That's fine in Servlets
But how can I get a Context in the ServletContextListener.
I want to read a file while the application starts.
-Prabhakar