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
What is servlet configuration?
How can you create a session in servlet?
What are the different methods of session management in servlets?
what do you understand by url rewriting?
What is servlet attributes and their scope?
What is servlet lazy loading?
What’s the difference between forward() and sendredirect() methods?
When a servlet accepts a call from a client, it receives two objects. What are they?
How servlet is created?
How do we call one servlet from another servlet?
what is servlet chaining?
How forward () method is different from send redirect () method?
What are the types of protocols supported by httpservlet ?
What is httpservlet class?
What is servlet interface?