I am running a tomcat server with WebApp1 and WebApp2. WebApp2 contains a function that needs to write a file to the directory of WebApp1. Calling "String filePath = application.getRealPath("/");" from within WebApp2 returns the root directory of that app, but how would I get the root directory of WebApp1?
Asked
Active
Viewed 847 times
0
-
Yeah, sorry for not searching well enough before posting. Thanks for your help. – honeybunches Jul 28 '11 at 18:22
-
it's not that easy to find it, but since I knew such an answer exists, I had to link it, rather than copy it. Did it help you? – Bozho Jul 28 '11 at 18:30