After some API reading I found getResourcePaths(). http://download.oracle.com/javaee/1.3/api/javax/servlet/ServletContext.html#getResourcePaths%28java.lang.String%29
Cheers Darky Hi there, I am trying to list files and directories within an war-file i.e images/summer2010 images/winter2010. The war-file is deployed on a tomcat 7 instance with unpackWARs="false". Since I have no exposed filesystem getRealPath will return null. So I tried to use getResourceAsStream wich works fine for files but not for directories. My other idea was to use getResource and URL/URI to get a java.io.File via JNDI. But this file is not a file nor a directory. Cheers Darky