Hi,
I am new to JSP and JEE. So maybe there is something very obvious that I missed.
I have a web filter class that needs to redirect the web request back to the root of the current web application. But since our application is not deployed in the root, I need to know the path the the current web application.
e.g. http://www.mydomain.com/myapplication/index.htm
I need to get the "myapplicaiton" part.
I have tried ServletContext, ApplicationContext with no success. I realized I can get it from HttpServletRequest but I don't have access to it in my filter class.
Please help. I am stuck. I am from the .NET world. And this is so easy there.