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 called Session Tracking?
How to get the actual path of servlet in server?
What do you mean by a filter and how does it work?
What if you need to span your transaction across multiple servlet invocations?
What is servlet collaboration?
What exactly are the functions of servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
Can we use the constructor, instead of init(), to initialize servlet?
What is the difference between jsp and servlet life cycle?
Explain url encoding in servlet?
What is servlet and its types?
What is servlet? Explain
How can the referrer and the target urls be used in servlet?
Difference between GET and POST?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?