Make the output path a parameter.
It would then be configured by whoever is setting up the web application.
>
> ServletContext.getResourceAsStream() is perfect for reading a
> file. But what
> about writing a file ?
>
>
-
T
February 20, 2001 4:34 PM
Subject: Re: *** Referring to a file or a directory from inside a
jsp/servlet or bean ***
>
>
> It all depends on what your code is. I'm assuming you're just using new
> File( relpath ), which should be relative to the user.dir system pr
Apparently,
The page attribute (as in is
interpreted relative to the location of the current page if
it does not start with /. In other words the path is page-
relative. You can refer to pages in other directories
by /dir1/page1.jsp or ../dir1/page1.jsp or
dir1/page1.jsp. If starting with /, pat
As far as I know, there is no cross-server standard (i.e. its not in
the spec where the root is supposed to be). Consequently the best method is
one that will always work. The one that comes to my mind is to use the
ClassLoader.getResource and getResourceAsStream methods. Anything in t