Re: How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-05 Thread Jacob Kjome
See this discussion: http://marc.theaimsgroup.com/?l=tomcat-userm=103904964313189w=2 Jake At 07:33 AM 12/5/2002 -0800, you wrote: You can place your data file under WEB-INF/lib as a jar file, or as far as i know, anything under WEB-INF cannot be accessed by direct client request. So you

How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-03 Thread Patrick Kosiol
Hi, How do I connect to a Data-File above the WEB-INF-Folder from a servlet For example my class is placed in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class and my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or so. Is this possible or does anybody

RE: How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-03 Thread Shapira, Yoav
Howdy, How do I connect to a Data-File above the WEB-INF-Folder from a servlet For example my class is placed in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class and my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or so. Is this possible or does anybody

Re: How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-03 Thread David Brown
Patrick Kosiol writes: Hi, How do I connect to a Data-File above the WEB-INF-Folder from a servlet For example my class is placed in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class and my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or so. Is

RE: How to connect to a Data-File above the WEB-INF-Folder from a servlet????

2002-12-03 Thread Shapira, Yoav
Howdy, You want to be careful when running executables from your servlet (and from a web server in general). You're opening up security holes there. From your servlet, assuming the file is at /home/myname/myprogram: String execPath = /home/myname/myprogram; Runtime runtime =