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
Which class is the Front Controller in Struts2?
What kind of mvc is struts 2?
What is difference between actionform and dynaactionform?
What is actionmapping?
what is ACID test for fresh engineers??what is the pattern??
List the important attribute and elements of action mapping under struts.
How is the mvc design pattern used in struts framework?
how to develop the submit and search operations in single jsp using struts?
What is the purpose of @urlvalidator annotation?
Name some useful annotations introduced in Struts2?
What are the benefits of Struts framework?
What is jakarta struts framework?
What does i18n interceptor?
How the exceptions are handled in struts?
What is pojo in struts2?