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 difference between encodeRedirectUrl and encodeURL?
How can we include static files in the jsp page?
How forward () method is different from send redirect () method?
Explain mvc pattern.
What is lazy loading and what is Generic Servlet Class?
What is servlet? Explain
When servlet object is created?
What is generic servlet class?
How a servlet is unloaded?
What are different methods of session management in servlets?
What is session tracking?
What is the inter-servlet communication?
Explain the lifecycle of a servlet?
What do you mean by servlet context?
How can you create a session in servlet?