This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Originally posted by seetharaman venkatasamy: Hai,
you already pass servletContext into java class
using UserAuth userauth = Login.checkLogin(application, request, response, null);
then once again why you want to access...you can use the application right?...
correct me ,if i am wrong
It is passed from a jsp page as "application" to a servlet. the servlet that recieves it uses it by passing it to another method using servlet.getServletContext(). The method that recieves it uses it to access the actual context using context.getContext("/admin")