S
sven abels
Hi!
I've written a class that uses an xml-file to read it's configuration and it
works
fine in my programs.
I can read my confiuration file by accessing
....readSettings("settings.xml");...
I'd like to use my class in a Web-Application with Tomcat, too but whenever
I
want to read the file, I get the message, that Java/Tomcat searches for it
in
the tomcat-bin-directory.
Is there a way to read the xml-file from the WEB-INF/classes-directory or
is there a way to get the physical path of the current Web-Application in
a JSP/Servlet???
I've written a class that uses an xml-file to read it's configuration and it
works
fine in my programs.
I can read my confiuration file by accessing
....readSettings("settings.xml");...
I'd like to use my class in a Web-Application with Tomcat, too but whenever
I
want to read the file, I get the message, that Java/Tomcat searches for it
in
the tomcat-bin-directory.
Is there a way to read the xml-file from the WEB-INF/classes-directory or
is there a way to get the physical path of the current Web-Application in
a JSP/Servlet???