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


Please Help Members By Posting Answers For Below Questions

What does the term struts mean?

559


Name some of the features of struts2?

573


What is difference between spring and struts?

506


What is request processor and how does it relates to action mapping?

582


How to build struts application in eclipse?

529






What are the cons of struts 2?

575


What is the difference between struts and spring? Explain

484


What is the purpose of @beforeresult annotation?

577


What is action support class in struts2?

569


What is apache struts cve 2017 5638?

550


What do you mean by action errors and what are the results they force?

578


Can you explain struts validator framework?

576


What is the use of jsonvalidation?

599


What’s the utilization of resource bundle properties file in struts validation structure?

625


Explain the necessity of empty tag?

602