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 the purpose of @requiredstringvalidator?
Can you explain aware interfaces in struts2?
In which method of action class the business logic is executed?
What are the core classes of struts framework? Explain
What are the benefits of Interceptors in Struts2?
Which configuration file is used for storing jsp configuration information in struts?
Where can I get help with struts?
Why use spring, if you are already using struts?
What is the purpose of @beforeresult annotation?
Explain about logic match tag?
How do u provide security to ur project?(Banking domain project)
Provide some important Struts2 constants that you have used?
What is the purpose of @urlvalidator annotation?
State the procedure for using forward attribute of link tag’s.
What is the purpose of struct-config.xml in struct2?