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
If some new data has entered the database, explain how can a servlet refresh automatically?
What is the difference between CGI and Servlet?
What is the inter-servlet communication?
Is java servlet still used?
What is java servlet session?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the key methods that are involved in processing of http servlets?
Name the different ways of session tracking.
What are the jobs performed by servlets?
Explain web application directory arrangement?
Why is httpservlet declared abstract?
Can we refresh servlet in client and server side automatically?
Why is servlet used?
Is that servlet is pure java object or not?
Is dispatcher servlet a singleton?