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 are the applications of struts?
Explain about the process of functioning of the struts program?
Why use struts framework in java?
How you will display validation fail errors on jsp page?
Explain about how requests from the client are sent?
What is the purpose of @before?
Explain about struts relation to html tags?
What do you mean by actionform?
Can you explain struts validator framework?
What is life cycle of an interceptor?
What are action errors?
What is value stack?
Which tag is used to declare constants in struts xml?
What are result types in struts?
How can we handle exceptions thrown by application in Struts2?