Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.
Using a title of "servlets" in a forum completely dedicated to questions on Servlets isn't going to attract the attention of those who can best help you. You can change your subject line by clicking the button on your post.
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 ServletContextobject, as and when needed.
Hope that helps.
VERITAS VOS LIBERABIT
(The truth shall set you free)