Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Check if file exists in WEB-INF folder

Rapthor

2006-03-23

Replies:


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 that I can specify and point
to?
--
Sent from the Tomcat - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.