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 meant by Servlet? What are the parameters of service method?
What methodology can be followed to store more number of objects in a remote server?
explain the advantages of servlet life cycle?
What are the different session tracking techniques?
What is servlet invoker?
How the servlet is loaded?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is java servlet?
What is difference between cookies and httpsession?
Which interface must be implemented by all servlets?
What is the use of request dispatcher interface?
Explain the lifecycle of a servlet?
What is servlet configuration?
What is servlet and how it works?
Why servlet is used as controller ? Not JSP? I want complete explation?