What is ServletContext() and what is its use?
Answer Posted / srikanth
ServletContext is called web application there would be one servlet context for entire web applicationthe .servlet context is used to get the context parameters specified in web.xml and also get the information of servlet engineand also request dispatcher object.
| Is This Answer Correct ? | 15 Yes | 14 No |
Post New Answer View All Answers
Is it possible to have a constructor inside the servlet?
How do you design microservices?
What are the type of protocols used in httpservlet?
What are all the advantages of servlet over cgi?
What is the major difference between context parameter and context attribute?
How can we perform any action at the time of deploying the project?
Whether thread can be used in servlets?
How can the session in servlet be destroyed?
What is the difference between Difference between doGet() and doPost()?
How to make sure a servlet is loaded at the application startup?
Differentiate between the print writer and servlet output stream?
Explain Action Servlet?
How do I use cookies to store session state on the client?
How does tomcat servlet container work?
How to find whether a parameter exists in the request object?