What is the difference between servlet config and servlet
context.

Answer Posted / suresh g

Question: What is the difference between servlet config and servlet context?

Servlet Context:
Servlet context is communication between server side .Every application has only one servlet context and is accessible to all action resource of that application.

Serclet Config:
Servlet Config is objcet created after a servlet is instantiation and its default constructor is read .It is create to pass initialization information the servlet.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you use session tracking in httpservlet?

829


Explain the methods of request dispatcher in servlet?

716


What do you mean by cgi and what are its drawbacks?

710


What are the types of servlets? Explain

899


Is tomcat a servlet container?

768


Explain session tracking and its importance?

726


What is the use of servlet context?

734


What are the types of protocols supported by httpservlet ?

914


Whats the advantages using servlets over using CGI?

777


How printwriter is different from servletoutputstream?

762


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

736


Why doesn’t a servlet include main()?

764


Differentiate between get and post?

875


What are the phases of a servlet life cycle?

825


Why servlet is mostly used?

939