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

Explain jsessionid?

833


Describe some assignments that are executed by servlet container?

820


What must be implemented by all servlets?

828


What is the process for chaining servlet?

823


What's the difference between servlets and applets?

803


How servlet is created?

817


List out the difference between ServletConfig and ServletContext?

819


What are the different methods of session management in servlets?

779


Is servlet a server side scripting language?

850


What is servlet and its life cycle?

884


What is the difference between Server and Container?

935


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

1030


What are the different methods involved in generic servlet?

845


What is the difference between get and post methods?

822


What is the difference between encodeRedirectUrl and encodeURL?

871