Hi,

Is there any way of getting the real path of another context, that isn't a war?

In my environment we have our different applications say x, y and z,
and they are deployed as wars on the server.

And I created a data context in the webapps directory so that
all of the other contexts could store their uploaded and temp files there.

So I want to get a real path to the data directory, while I was developing
it I was using getServletContext().getRealPath("/") and inserting /data
in the returned String so that application x would get a real path to the data
directory e.g. /usr/tomcat/webapps/data/x, but this returns null when
its deployed as a war, so I was wondering how to get around this.

Has anyone come across this problem before or have suggestions on how to workaround it?
Any help would be greatly appreciated.

I'm running tomcat4.1.12 on jdk1.3.1.

Regards
Peter

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to