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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
javax.servlet.ServletConfigis 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.