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
What are the life-cycle methods for a servlet?
What is the difference between genericservlet and httpservlet
How do I use cookies to store session state on the client?
What is meant by session? Tell me something about httpsession class?
What is the need of servlet filters?
Who is responsible for writing a constructor?
What is servletconfig?
What methodology can be followed to store more number of objects in a remote server?
How to get the server information in a servlet?
What is difference between cookies and httpsession?
What do you mean by httpservlet?
Explain web container.
How can we refresh automatically when new data has entered the database?
What is a deployment descriptor?
Why jsp is better than servlet?