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
How to notify an object in session when session is invalidated or timed-out?
Differentiate between the print writer and servlet output stream?
What is pure servlet?
What is the purpose of inter-servlet communication?
What is difference between jsp and servlet?
Write a servlet to upload file on server.
How we can call a jsp from the servlet?
Which java application server is the best?
How the JSP file will be executed on the Server side?
What must be implemented by all servlets?
What is http servlet? Explain with the help of an example.
What are the differences between forward() method and sendredirect() methods?
Define declaration.
What is called Session Tracking?
What do you mean by interservlet communication?