Bear Bibeault wrote:
Ron Miller wrote:I want to save the servletConfig object in a private variable declared in HttpServlet
Why? For what possible purpose?
I think what Bear was getting at was that you don't need to store the ServletConfig in a variable. You can retrieve it anytime by calling getServletConfig().
Ron Miller wrote:so if I declare a variable at servlet level the variable will be shared among all Http Requests? (and therefore not a good way to save info specific to that user, session, or request)
Yes, you have to make sure your servlets are thread safe.