How to specify a startup servlet for an application (CONTEXT)?
I need to load couple xml files into memory and store them in ServletContext when my application starts. I created a servlet to do that, but I can't figure out how to make this servlet run automatically whem the app starts. Is there smthg in server.xml that I can define to run this servlet? Please help! Julia Kuznetsov
Relative file path
Is there a way to use relative file path (ex. examples/docs/test.xml) when accessing(reading etc.) it from servlet rather then absolute (ex. D:\smthg\app\docs\test.xml) path. Ex. : I have web app examples that mapped to d:\smthg\app. My file test.xml is in d:\smthg\app\docs. Can I access it using examples/docs/test.xml? If yes, how? Right now it's translating it to Tomcat bin dir: D:\jakarta-tomcat-3.2.2\bin\examples\docs\test.xml Sorry, I'm new to Appache-Tomcat world...