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 @beforeresult annotation?
What is the difference between session scope and request scope when saving formbean ?
What are different Struts2 tags? How can we use them?
Why are frameworks used?
Which class is the Front Controller in Struts2?
What are the benefits of Interceptors in Struts2?
What is the purpose of @before annotation?
What is the purpose of @before?
Can you explain struts.properties in struts2?
What is the purpose of form-beans tag in struct-config.xml?
What is the purpose of @conversion?
What is life cycle of an interceptor?
How is token generated?
What is dispatch action class?
What is action class?