Re: Check if file exists in WEB-INF folder

2006-03-24 Thread Hadraba Petr
Hello, be careful using filesystem directly. This piece of code will not work if the unpackWARs="no". Use getServletContext().getResource("/WEB-INF/jsp/test.jsp") == null instead. This will work for both options: for unpacked WARs and "packed" WARs. PETR On 3/23/06, Rapthor <[EMAIL PROTECTED]>

Re: Check if file exists in WEB-INF folder

2006-03-23 Thread Rapthor
It works! Thanks. -- View this message in context: http://www.nabble.com/Check-if-file-exists-in-WEB-INF-folder-t1329073.html#a3549945 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Check if file exists in WEB-INF folder

2006-03-23 Thread Antonio Petrelli
Antonio Petrelli ha scritto: Rapthor ha scritto: Hello, I intent to check whether a jsp file exists or not in my WebApplication. Doing it this way doesn't work: if (new File("WEB-INF/jsp/test.jsp").exists()) return true; Is there a way to ge

Re: Check if file exists in WEB-INF folder

2006-03-23 Thread Antonio Petrelli
Rapthor ha scritto: Hello, I intent to check whether a jsp file exists or not in my WebApplication. Doing it this way doesn't work: if (new File("WEB-INF/jsp/test.jsp").exists()) return true; Is there a way to get the WebApplication's path