what is the difference between ServletContext and
ServletConfig?
Answer Posted / durairaj
ServletContext represents the unique configuration of particular webapplication in the WebContainer.The parameters set in the ServletContext can be retrieved universally in the particular webapplication
ServletConfig represents the unique configuration of a particular Servlet in the Webapplication.The parameters set in the ServletConfig can be retrieved universally in the particular Servlet class only(not outside)
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is difference between interceptors and filters?
Is struts compatible with other java technologies?
What applications use apache struts?
How exceptions are handled in struts application?
What is the purpose of form-beans tag in struct-config.xml?
What are the core components of a struct2 based application?
What are inner class and anonymous class?
What are the steps involved in creating a strut application?
What validate() and reset() method does ?
Which class is the Front Controller in Struts2?
When do I need “struts.jar” on my classpath?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
How to display validation errors on jsp page?
What is role of action class?
What is the purpose of struts.xml in struct2?