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


Please Help Members By Posting Answers For Below Questions

What is the difference between encodeRedirectUrl and encodeURL?

607


How can we include static files in the jsp page?

619


How forward () method is different from send redirect () method?

520


Explain mvc pattern.

594


What is lazy loading and what is Generic Servlet Class?

611






What is servlet? Explain

584


When servlet object is created?

604


What is generic servlet class?

607


How a servlet is unloaded?

593


What are different methods of session management in servlets?

782


What is session tracking?

700


What is the inter-servlet communication?

704


Explain the lifecycle of a servlet?

513


What do you mean by servlet context?

607


How can you create a session in servlet?

600