Re: Getting directory in which app is deployed

2006-02-10 Thread Mike Sabroff
have your external process use a script that points to the webdirectory or if you use servlets, set an init param in the web.xml or in server.xml set an environment variable: or set a session variable in a jsp Wojciech Ciesielski wrote: Hi there, I have one problem... We have to execute

Re: Getting directory in which app is deployed

2006-02-10 Thread David Smith
If your webapp is deployed as an exploded app (ie not a .war file), ServletContext#getRealPath() should do the trick --David Wojciech Ciesielski wrote: Hi there, I have one problem... We have to execute external Java process from JAR archive included in our web application directory. The pro

Getting directory in which app is deployed

2006-02-10 Thread Wojciech Ciesielski
Hi there, I have one problem... We have to execute external Java process from JAR archive included in our web application directory. The problem is, that all system dependant functions are relative to tomcat home directory. And - when our application is deployed outside tomcat directory via ser