what is the difference between ServletContext and
ServletConfig

Answer Posted / sreenu bassha

ServletContext:ServletContext interface contains basic
methods to find the path information, accessing other
servlets,etc.
ServletConfig:ServletConfig interface contains basic
methods to get the initialization parameters and
servletContext object.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet configuration?

624


What is servlet and its advantages?

620


List out the difference between ServletConfig and ServletContext?

695


What is the difference between CGI and Servlet?

681


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

612






What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

695


What are the life cycle methods of a servlet?

681


Explain the different ways for servlet authentication?

645


What are the drawbacks of cgi?

647


Name the packages that work with servlet?

623


How can we achieve transport layer security for our web application?

662


Why is Servlet so popular?

683


How servlet is created?

650


What are the phases of servlet life cycle?

679


Why is http protocol called as a stateless protocol?

613