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 different ways we can maintain state between requests?
What is servlet interface?
What is servlet container?
What do you mean by the servlet chaining?
What is meant by servlet? What are the parameters of the service method?
Which application server is best for java?
What is a web application and what is it’s directory structure?
What is the servletconfig object?
Define context initialization parameters.
What are the benefits of using servlet over cgi?
Explain jsessionid and when is it created?
What is the difference between encodeRedirectUrl and encodeURL?
What are Servlets?
How do we go with database connection and log4j integration in servlet?
How will you pass values from HTML page to the servlet?