Tuesday, November 29, 2011

What is the difference between servlet context and servlet config

ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor. :ServletConfig defines an object generated by a servlet engine.:ServeltContext is only one for total web application , but ServeltConfig is available for each individual servelts in that application.:ServletConfig object is per servlet whereas ServletContext object is per application per jvm. and from one of the ServletConfig methods we can get ServletContext object.:ServletContext: ServletContext is a view of webapplication, there will be only one servletcontext for one webapplication. It acts as shared memoty area, all the
Category:Servlet Interview Questions

No comments:

Post a Comment