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
Why do we need struts?
What configuration changes are required to use Tiles in Struts?
How can forward action be used to restrict a strut application to mvc?
What is the purpose of @keyproperty annotation annotation?
Can you explain value stack?
What configurations are stored in struts configuration file ?
What is s token?
What do you mean by dynaactionform?
What is struts in j2ee?
Why is it called struts?
What is difference between spring and struts?
What is the purpose of @emailvalidator annotation?
What is struts-default package and what are it’s benefits?
What is dispatchaction?
How is a lookup dispatch action created?