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")