Tuesday, November 29, 2011

What is the use of ServletConfig and ServletContext..?

An interface that describes the configuration parameters for a servlet. This is passed to the servlet when the web server calls its init() method. Note that the servlet should save the reference to the ServletConfig object, and define a getServletConfig() method to return it when asked. This interface defines how to get the initialization parameters for the servlet and the context under which the servlet is running.
Category:Servlet Interview Questions

No comments:

Post a Comment