What is ServletContext() and what is its use?
Answer Posted / shiva
One Servlet Context object will be created by the container
for one webapplication. That means all servlets can have a
scope to acess that context object. for example, let us
assume there 5 servlets are there in u r web application,
if u want to share same data to all servlets then we can
share that data using servlet context, because every
servlet can have interaction with that application
environment...
| Is This Answer Correct ? | 182 Yes | 22 No |
Post New Answer View All Answers
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
When should you prefer to use doget() over dopost()?
What is called Session Tracking?
What is the difference between the include() and forward() methods?
What are some advantages of storing session state in cookies?
Explain how to improve Servlet Performance?
Differentiate between the web server and application server?
How to notify an object in session when session is invalidated or timed-out?
When servlet object is created?
what is multiple server?
What are important features of Servlet 3?
How can you run a servlet program?
What do you mean by servlet?
What are the functions of Servlet container?
Which interface should be implemented by all servlets?