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
Differentiate between the print writer and servlet output stream?
What is servlet initializer?
List the Different types of servlet?
Is servlet a framework?
How does tomcat servlet container work?
When should you prefer to use doget() over dopost()?
How can we create deadlock situation in servlet?
Write a servlet to upload file on server.
What do you mean by servlet context?
What are the uses of servlet and what is servlet chaining?
Who is responsible for writing a constructor?
Can a jsp be called using a servlet?
What are the features added in Servlet 2.5?
How do we call one servlet from another servlet?
Explain the differences between jsp and servlet.