When we want to deal with the web application we use servlet context:When we need to communicate with the servlet container we user ServletContext. It is an interface from the Java Servlet API that allows us dispatching the request, write server logs etc. There is only one servlet context object per application(per JVM):If i want to make available some sort of information to all my servlets present in my application then i make use of ServletContext which is an interface available in javax.Servlet API
Category:Servlet Interview Questions
No comments:
Post a Comment