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

Who is responsible for writing a constructor?

1032


What is the difference between encodeRedirectUrl and encodeURL?

849


What are the features added in Servlet 2.5?

973


What is the life cycle of a servlet?

1118


What are the jobs performed by servlets?

785


Why HttpServlet class is declared abstract?

886


What is Request Dispatcher?

1081


Can we use the constructor, instead of init(), to initialize servlet?

838


How native code can be used in a servlet?

3755


Differentiate between the print writer and servlet output stream?

758


When a servlet accepts a call from a client, it receives two objects. What are they?

999


What is a web container and what is its responsibility?

744


What is Servlet API used for connecting database?

835


How does Cookies work in Servlets?

898


Explain the war file?

839