- ServletContext object is global to entire web application. Where as ServletConfig object is one per servlet class.
- As long as web application is executing, ServletContext object will be available, and it will be destroyed once the application is removed from the server.
As long as a servlet is executing, ServletConfig object will be available, it will be destroyed once the servlet execution is completed.
- The Servlet Config Parameters are unknown to other servlets, since these are specific to a servlet.
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Sunday, 22 June 2014
ServletConfig Vs ServletContext
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment