getting the request and response within a class instantiated in a JSP page
843836Oct 4 2004 — edited Oct 14 2004Hi
i have a jsp page . In this page i am instantaiating a class (say TaskProcessor) . I need to access the request and response objects of the jsp page with in the class TaskProcessor (without passing the request and response explicitly to the class).
Can i use the JspFactory.getPageContext() to get the page context for this or should i use getServletConfig().getServletContext()
Please so help me out on this it's urgent.
Thanks,
Babita