What is ServletContext() and what is its use?

Answer Posted / a,srinivas rao

servletcontext is an object which contains the information
regarding all the servlets that are used in web application.
when ever user first do the deployment of the web
application on the server the web container instantiate a
servlet context object.the information in the servlet
context object is also passed to init method.

Is This Answer Correct ?    51 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is called Session Tracking?

604


How to get the actual path of servlet in server?

741


What do you mean by a filter and how does it work?

543


What if you need to span your transaction across multiple servlet invocations?

587


What is servlet collaboration?

668






What exactly are the functions of servlet?

603


What are the differences between the servletconfig interface and the servletcontext interface?

587


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

586


What is the difference between jsp and servlet life cycle?

693


Explain url encoding in servlet?

582


What is servlet and its types?

560


What is servlet? Explain

584


How can the referrer and the target urls be used in servlet?

538


Difference between GET and POST?

714


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

568