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
Which are the different ways you can communicate between servlets?
What are the advantages of Servlet over CGI?
Why the container loads server at the application startup and how?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
How can I send user authentication information while making URL Connection?
What is servlet api used for conneting database?
What is servlet name in web xml?
What are the new features added to servlet 2.5?
Can we override servlet service method?
Is it good idea to create servlet constructor?
What do you mean by request dispatcher in servlet? Also explain its methods.
How to commuincate between an applet and a servlet?
What do you mean by httpservlet?
What are the features added in Servlet 2.5?