What is the ServletConfig() and what is its use?

Answer Posted / tulasi vani

ServletConfig gives the information regarding the
configuration of the servlet.It provides the information
regarding the initialisation parameters which are specified
in the web.xml file.Its also contains an object of servlet
context which gives servlet information about the container

Is This Answer Correct ?    32 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a hello world program using servlets.

588


How to commuincate between an applet and a servlet?

585


What is the purpose of inter-servlet communication?

588


What is servlet api used for conneting database?

694


How can I send user authentication information while making URL Connection?

541






What is setattribute in servlet?

552


What is the difference between servlet and jsp?

596


List some life cycle methods of a servlet.

587


What is the use of welcome-file-list?

570


How do I use cookies to store session state on the client?

534


What is lazy loading and what is Generic Servlet Class?

605


What's the use of servletcontext?

678


Can we override destroy method in servlet?

495


How can we invoke another servlet in a different application?

703


What is dispatcher servlet?

554