• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting the init parameters in the servlet.xml file in Tomcat config.getInitParameter

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
I wanted to know as to how do i set the parameter in the servlet.xml file in Tomcat so that i can collect it bu using the config.getParameter() method
Amit
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amit,
We have to edit ../yourwebappln/web-inf/web.xml file to include <init-param> .... </init-param> xml sub tags to include your congigurable parameters. Please refer to this related discussion.
http://www.javaranch.com/ubb/Forum7/HTML/001790.html
regds
maha anna
[This message has been edited by maha anna (edited March 26, 2001).]
 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
I have configured everything according to the article for which u had provided the link as i am invoking the config.getInitParameter() from a jsp page I have set the <servlet-class> tag to jsp i am also using the proper syntax to call the method still it seems to return null actually i want to return a particular path as a string from the web.xml file but it always returns a null any suggestions???
 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello
I have configured everything according to the article for which u had provided the link as i am invoking the config.getInitParameter() from a jsp page I have set the <servlet-class> tag to jsp i am also using the proper syntax to call the method still it seems to return null actually i want to return a particular path as a string from the web.xml file but it always returns a null any suggestions???
 
reply
    Bookmark Topic Watch Topic
  • New Topic