ServletConfig
***************
ServletConfig
encapsulates servlet configuration,that is used by the servlet container,used
to pass information to servlet during initialix(z)ation.
ServletConfig is one
per servlet.
Methods in
<<ServletConfig>> interface:
i) String getInitParameter(String)
ii) Enumeration getInitParameterNames()
iii) ServletContext getServletContext()
iv) String getServletName()
ServletContext
*****************
ServletContext is one
per web application.
Methods in
<<ServletContext>> interface:
i) Object getAttribute(String)
ii) String getInitParameter(String)
iii) String getServletContextName()
iv) void setAttribute(String,Object)
v) void removeAttribute(String)
vi) RequestDispatcher
getRequestDispatcher(String path)
and
many more...
A simple example