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

What are the different session tracking techniques?

665


Why the container loads server at the application startup and how?

573


What are the jobs performed by servlets?

574


Why is init() method is used in servlets?

550


Explain the different ways for servlet authentication?

518






What is the use of servlet context?

521


What is the difference between CGI and Servlet?

577


Elucidate servlet attributes and its scope?

564


How do I know if java is running on linux?

594


What is a servlet engine?

539


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

634


What is servlet and its types?

548


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

558


What is the difference between jsp and servlet life cycle?

677


What do you mean by filter in servlet?

532