MY mENU


Saturday, 17 March 2012

ServletConfig and ServletContext Objects

ServetConfig object?

1. for every servlet web container creates one ServletConfig object to hold servlet level configuration information.
2. ServletConfig interface defines several methods to access this configurations information.
Ex: getInitParameter()
getInitParameterNames();
getSerlvetName();
getServletContext()

ServletContext object ?
1. for every web application web container creates one ServletContext object to hold application level configuration information.
2. ServlerContext interface defines several methods to access this information.
Ex: getInitParameter();

No comments:

Post a Comment