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 used to display the intermediate result in an interceptor?
What is structs 2 validation framework?
What is the purpose of @key annotation annotation?
How tag libraries are defined in Struts?
When it’s useful to use IncludeAction?
What do you mean by actionform?
What is a custom tag?
What is the differences between struts1 and struts2?
What is the purpose of @stringlengthfieldvalidator annotation?
What is controller in struts2?
Which library is provided by struts for form elements like check boxes, text boxes etc?
How do struts work?
Give an example where struts tiles may be used?
Are actions thread safe?
How is the action mapping specified?