Ok, you are right. Sorry, I did misread it. In fact, I think I read part of it and then assumed the rest.
Anyway, there is a way to do this. You can set up a <context-param> with some default. The server should be able to override this default. In Tomcat, that means nesting <Parameter> elements inside the <Context> element for your webapp. See documentation here...
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Context%20Parameters
You can see examples of this in the "examples" webapp config in the server.xml.
So, you can set whatever default and the server admin can override that default without ever touching your .war file.
Jake
At 08:55 PM 1/15/2003 -0500, you wrote:
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]>