Re: [JSP] List directory content within a war-file

2011-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DBD, On 7/16/2011 10:46 AM, Dark Before Dawn wrote: > 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. Are you sure you want to do this? > M

Re: [JSP] List directory content within a war-file

2011-07-16 Thread Pid *
On 16 Jul 2011, at 15:46, Dark Before Dawn wrote: > 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 w

[JSP] List directory content within a war-file

2011-07-16 Thread Dark Before Dawn
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 w