On Thursday, January 16, 2003, Jacob Kjome <[EMAIL PROTECTED]> wrote:

>Yes, of course there is....

Thanks, but this illustrates why the bottom-quoting so popular on this
list doesn't work well.  Either you've misunderstood my question, or
you're assuming something else which I'm still missing, and it's
difficult to tell which.

>InputStream is = 
>getServletContext().getResourceAsStream("/WEB-INF/myFile-dataResource.
>xml");
>
>You can also get a list of files matching a particluar pattern using 
>something like the following....

This allows me to locate files which are already in the webapp, but
AFAICS doesn't do anything to let me write the application's data files,
or even a resource giving the path of the data file, to the archive.  

Also, ServletContext.getResourcePaths is a Servlets 2.3 feature, and so
far I've been working with a codebase that only requires 2.2.

Gary McGath       http://www.mcgath.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to