• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets

 
mahender ch
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we should use <context-param> tag in web.xml file?
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with Struts, moving to servlets forum.

Mahendrer please check your private messages for some administrative matter. Also go through these guidelines once...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Phoenix FireBird
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic