Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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).]
+Pie Number of slices to send: Send
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???
+Pie Number of slices to send: Send
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???
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 867 times.
Similar Threads
restart APACHE and TOMCAT Urgent!!!!
springDispatcher-servlet.xml: java.io.FileNotFoundException
404 error in eclipse after running Spring App
Deploying a new application
can web.xml data include contents from other xml file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:16:13.