I have some old code in which the programmer has passed servletContext into the method. But now for some upgradation I need to use HttpServletRequest in same method, I cannot change the old code, so passing the request object is not an option. So is there any way throught which I can get hold of request object.
I am using java 1.6 and tomcat 6. Its a servlet jsp application and not spring or struts. Can it be done? If yes then how should I do it.