What is ServletContext() and what is its use?
Answer Posted / anjan
Assume that ServletContext is shared momeroy for all
servelts which are existed in a web application,
we can place an object on to the servletcontext, and that
can uses all other servlets which are exited in the web
application.
| Is This Answer Correct ? | 153 Yes | 27 No |
Post New Answer View All Answers
What are different Authentication options available in Servlets.
Define the life cycle of a servlets.
Elucidate servlet attributes and its scope?
How native code can be used in a servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What are different ways for servlet authentication?
Why is http protocol called as a stateless protocol?
What exception should be thrown when servlet is not properly initialized?
What do you mean by cgi and what are its drawbacks?
What is the difference between the include() and forward() methods?
Explain the differences between jsp and servlet.
What are the disadvantages of storing session state in cookies?
What are the phases of the servlet life cycle?
Why is init() method is used in servlets?
What is servlet and its advantages?