File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web-xml entry example for database init parameters?

 
Rakesh Mehra
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what should be the web-xml structure specifyng the database initialization parametrs? An example web-xml would be useful.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is not exactly clear. Are you asking how you sepcify initialization parameters via your servlet in web.xml?
 
Rakesh Mehra
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bosun Bello:
This question is not exactly clear. Are you asking how you sepcify initialization parameters via your servlet in web.xml?


Yes,iwant to know
how you sepcify initialization parameters via your servlet in web.xml?
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heres an example



You can get the values of this parameter using ServletConfig.

String interval = config.getInitParamater("timer.refresh.interval");
 
Rakesh Mehra
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sudhir nim:
Heres an example



You can get the values of this parameter using ServletConfig.

String interval = config.getInitParamater("timer.refresh.interval");



what should we mention in web-xml w.r.t database connection?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic