WHAT IS SERVLETCONFIG OBJECT?

Kamlakar Singh

Total Post:80

Points:400
Posted by  Kamlakar Singh
 867  View(s)
Ratings:
Rate this:
  1. Kamlakar Singh

    Post:80

    Points:400
    What is ServletConfig object?

    javax.servlet.ServletConfig is used to pass configuration information to Servlet. Every servlet has it’s own ServletConfig object and servlet container is responsible for instantiating this object. We can provide servlet init parameters in web.xml file or through use of WebInitParam annotation. We can use getServletConfig() method to get the ServletConfig object of the servlet.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!