What is ServletContext() and what is its use?

Answer Posted / ranjit

as soon as the java web application is
deployed into web container ,the first
object that container create is
servletcontext
This object is only one per web application
Every web component of web application
share this unique object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is war file?

571


explain the advantages of servlet life cycle?

546


What is the difference between encodeRedirectUrl and encodeURL?

595


What is the difference between context parameter and context attribute?

524


Describe some assignments that are executed by servlet container?

571






Explain jsessionid?

607


What is the directory structure of web application?

518


How would you create deadlock on your servlet?

614


Explain is servlet mapping?

570


Can filter be used as request or response?

536


Why session tracking is needed?

576


What is ServletContext object?

633


What is Servlets and explain the advantages of Servlet life cycle?

574


Is dispatcher servlet a singleton?

535


How can we create deadlock situation in servlet?

827