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 are the different ways we can maintain state between requests?

665


What is servlet interface?

806


What is servlet container?

753


What do you mean by the servlet chaining?

638


What is meant by servlet? What are the parameters of the service method?

672






Which application server is best for java?

653


What is a web application and what is it’s directory structure?

673


What is the servletconfig object?

616


Define context initialization parameters.

652


What are the benefits of using servlet over cgi?

662


Explain jsessionid and when is it created?

680


What is the difference between encodeRedirectUrl and encodeURL?

685


What are Servlets?

698


How do we go with database connection and log4j integration in servlet?

791


How will you pass values from HTML page to the servlet?

661