mahender ch wrote:why we should use <context-param> tag in web.xml file?
I believe I can answer it here: If not, then I apologize
You should be writing <context-param> tag in the web.xml file only and only if you wish to pass some application level data when the application is getting initialized. Whatever parameter data that you are passing through the web.xml file can in turn be accessed by the servlets through the
ServletContext object, as and when needed.
Hope that helps.