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
How do you create message resource?
What is the purpose of @action annotation?
What is the need of struts?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What is used to display the intermediate result in an interceptor?
1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they
Explain the core end goal while using java struts?
What is the difference between session scope and request scope when saving formbean ?
What are Struts2 core components?
What is the purpose of redirect result type?
How does one create an action in struts 2?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
How action mapping is configured in Struts?
How does interceptor work in struts2?
What is the default location of result pages and how can we change it?