What is ServletContext() and what is its use?

Answer Posted / anjan

Assume that ServletContext is shared momeroy for all
servelts which are existed in a web application,

we can place an object on to the servletcontext, and that
can uses all other servlets which are exited in the web
application.

Is This Answer Correct ?    153 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you load an image in a Servlet?

758


What is the difference between servlet and filter?

613


What are the different methods involved in generic servlet?

656


Tell the new features added in servletrequest interface i.e. Servlet 2.4

666


Why jsp is better than servlet?

615






How to notify an object in session when session is invalidated or timed-out?

714


request parameter how to find whether a parameter exists in the request object?

666


Why is httpservlet declared abstract?

669


How do you design microservices?

699


What is lazy loading and what is Generic Servlet Class?

694


What's the use of servletcontext?

772


Explain servlet.

667


Define the servlet mapping.

620


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

697


Which event is fired at the time of session creation and destroy?

981