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
Explain the war file?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are different Authentication options available in Servlets.
How can we perform any action at the time of deploying the project?
What are different ways for servlet authentication?
What are the life cycle methods of the servlet?
What is the purpose of inter-servlet communication?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Explain the differences between jsp and servlet.
What is the difference in between the httpservlet and generic servlet?
What is pure servlet?
How do you load an image in a Servlet?
What is servlet collaboration?
What is the default http method in the servlet?
What are sessions in servlets?