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 is the difference between servlet and filter?
What mechanisms are used by a Servlet Container to maintain session information?
Tell us something about servletcontext interface.
What is the life cycle of a servlet?
What is cookie? Why is cookie used?
How we can create war file in servlet?
Explain session tracking and its importance?
What is the difference between using getSession(true) and getSession(false) methods?
What is http servlet in java?
What are the type of protocols used in httpservlet?
Explain how does JSP handle run-time exceptions?
What is the life-cycle of servlets?
What are the exceptions thrown by servlets? Why?
What is the difference between Difference between doGet() and doPost()?
What is the use of welcome-file-list?