Forums Register Login

Accessing files in WEB-INF from a servlet/JSP

+Pie Number of slices to send: Send
Hi folks
I'd like to put a configuration file into my WEB-INF directory, and then be able to open it as an InputStream from a servlet. I'm sure I've seen this done, but I can't remember how.
I know that I could put a path to the conf file in my web.xml, but I'd like to do it directly, if possible.
Does anyone have a clue what I'm talking about? Any help will be appreciated.
Thanks
Felix.
Montana has cold dark nights. Perfect for the heat from incandescent light. 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 618 times.
Similar Threads
Running an Applet in Tomcat 4.0
Using Sun App Server instead of Orion
trouble with an example servlet
problems with search servlet 2.1
tomcat error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:02:03.