tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris brown" <>
Subject getResourceAsStream() and exploring the archive
Date Mon, 01 Oct 2001 15:22:05 GMT
The "ServletContext.getResourceAsStream()" method is quite useful when you
know in advance the names of resources to load.  However, I'd like to know
if there's any way to explore a WAR file (say, specify a "setup" subfolder
in the WAR archive, then look at its contents).  This way, any number of
files with any name can be read.  This is useful for example if each file is
some sort of extensible setup info file, providing extensible deployment

Any suggestions, apart from decompressing the archive and using
classes/methods in* ?


View raw message