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
How we can install struts?
what is meant by Struts Validator Framework?
What do you mean by tiles in struts?
What should be the name of xml file used for validation in struts?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the purpose of form-beans tag in struct-config.xml?
What are result types in struts?
What is the use of lookupdispatchaction?
What are the 5 constants of action interface?
What are the some useful annotations introduced in struts2?
Where can I get a copy of struts?
What is execute method in struts?
What is action chaining ?
What does the term struts mean?
What is xml based validation in struts2?