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
Who is responsible for writing a constructor?
What is called a session?
What are the types of protocols supported by httpservlet ?
What are the phases of a servlet life cycle?
What is the web server used for running the Servlets?
Which event is fired at the time of session creation and destroy?
How do I know if java is running on linux?
What are the advantages of cookies?
What must be implemented by all servlets?
Describe some assignments that are executed by servlet container?
Why is Servlet so popular?
How can we refresh automatically when new data is entered into the database?
What is servlet lazy loading?
Whether thread can be used in servlets?
What is SingleThreadModel interface?