the "actual current working directory" is a bit ambiguous here. For java it will always be the directory from where the application is started from.

I can think of ugly non portable hacks using
Runtime.getRuntime().exec("insert your external program here");

but surely you can save yourself this mess and just set it as a configuration property :)

hth
Jorg

Jan Wielgus wrote:

Hi,

I would like to get the _actual_ current working directory, as I
want to write files on the server. As I'm using Java for that, I
need to have the full path explicitly. I can't use the protocols
such as 'context:/' or 'cocoon:/'. I have my app in such a directory:
c:\cocoon-2.1.2\build\webapp\my-app-dir
but Java (embedded in a XSP page) recognizes only "c:\cocoon-2.1-2".
Are there any possibilities to get the actual directory and give it
to Java function as parameter without need to code it directly in
the XSP page?


Jan


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



Reply via email to