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 many action classes can be used in struts application?
Which interceptor is responsible for file upload support?
What is the purpose of @keyproperty annotation annotation?
What is the default location of result pages and how can we change it?
How can we write our own interceptor and map it for action?
What is http forward?
Where can I get a copy of struts?
Explain how can we upload files in struts2 application?
Can we handle exceptions in Struts programmatically?
What are struts in java?
Explain about how requests from the client are sent?
Is struts 1 still supported?
How to override the default error message that can come during file uploading process?
Explain about the
What are the aware interfaces in struts2?