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
What is the
What must be implemented by all servlets?
Given the request path below, which are context path, servlet path and path info?
How many objects of a servlet is created?
How can the referrer and the target urls be used in servlet?
Differentiate between the print writer and servlet output stream?
What is the need of servlet filters?
What do you mean by request dispatcher in servlet? Also explain its methods.
How to read request headers from servlets?
What is Servlets and explain the advantages of Servlet life cycle?
What is the difference between servlet and filter?
What are the life cycle methods of a servlet?
What is cgi and what are its drawbacks?
What are the objects involved when a servlet receives a call from client?
What is SingleThreadModel interface?