what is the difference between ServletContext and
ServletConfig?
Answer Posted / devarathnam chinnakotla. banga
Hi,
ServletContext: ServletContext is a view of webapplication,
there will be only one servletcontext for one
webapplication. It acts as shared memoty area, all the
components of a webapplication can access the data from
servletcontext object.
ServletConfig: ServletConfig will be specific to each
servlet. If your webapplication contains 20 servlets then,
there will be 20 servletsconfig objects.
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is dispatchaction?
what is meant by Struts Validator Framework?
What applications use apache struts?
What is the differences between struts1 and struts2?
What is the purpose of struct-config.xml in struct2?
What is difference between actionform and dynaactionform?
When do I need “struts.jar” on my classpath?
Explain about struts relation to html tags?
What are the classes used as part of struts framework ?
What is the purpose of @customvalidator annotation?
What is strut web xml?
What is includeaction?
What is struts?
What is the default location of result pages and how can we change it?
What is action class? What are the types of action class?