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

How can the session in servlet can be destroyed?

715


What is the use of servletconfig interface?

562


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

581


How do I know if java is running on linux?

607


If servlet receives multiple requests, how many objects will it create?

833






Why do we have servlet listeners?

603


What is servlet mapping?

603


What are the uses of servlets?

624


What are the advantages of cookies?

632


What are the new features added to servlet 2.5?

596


What do you mean by annotations in servlet?

591


Which method is called when reference variable is passed in system.net?

1838


Is that servlet is pure java object or not?

644


Explain the concept of ssi ?

595


What are the functions of an intercepting filter?

494