What is ServletContext() and what is its use?
Answer Posted / ranjit
as soon as the java web application is
deployed into web container ,the first
object that container create is
servletcontext
This object is only one per web application
Every web component of web application
share this unique object
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are common tasks performed by Servlet Container?
What are its drawbacks of cgi?
Can we override servlet service method?
Which event is fired at the time of setting, getting or removing attribute from application scope?
What is the difference between encodeRedirectUrl and encodeURL?
What is session?
What is servlet container?
What’s the use of the servlet wrapper classes??
What is the use of servlet wrapper classes?
What is the difference between genericservlet and httpservlet
List some life cycle methods of a servlet.
How do you configure a centralized error handler in servlets?
What is the difference between forward () and sendredirect () functions in servlet? Explain
How to handle exceptions thrown by application with another servlet?
What is the use of attribute in servlets?