Difference between servletconfig and servletcontext
Answers
Answered by
0
ServletConfig object is created by web container for each servlet to pass information to a servlet during initialization.This object can be used to get configuration information from web.xml file. when to use : if any specific content is modified from time to time.
ServletContext is a configuration Object which is created when web application is started. It contains different initialization parameter that can be configured in web.xml.
Similar questions