Ques : What is ServletConfig Interface

, , No Comments

 An object of ServletConfig is created by the servlet container for each servlet. This object is used to pass configuration related information to a servlet during start up. The getServletConfig() method is used to return the object of ServletConfig. It contains name/value pairs of initialization parameters for the servlet. It defines four methods such as getServletContext(), getServletName(), getInitParameter() and getInitParameterNames() for accessing this information.

0 टिप्पणियाँ:

Post a Comment