How can I Know the servlet root directory for documents and modify it?

2004-05-26 Thread Francisco José Arnau Vives
In a message I said my problem into migrate a application from windows to a linux server. I think the problem is about the root directory where the servlets try to find the files. How can I know the dafault route for my application and how can I modify it? Thanks

Re: How can I Know the servlet root directory for documents and modify it?

2004-05-26 Thread QM
On Wed, May 26, 2004 at 03:21:43PM +0200, Francisco Jos? Arnau Vives wrote: : In a message I said my problem into migrate a application from windows to a : linux server. I think the problem is about the root directory where the : servlets try to find the files. How can I know the dafault route for

Re: How can I Know the servlet root directory for documents and modify it?

2004-05-26 Thread stan
In a servlet, you can use getServletContext().getRealPath(/) to get the root of the web's docBase - Original Message - From: Francisco José Arnau Vives [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 9:21 PM Subject: How can I Know the servlet root directory for

RE: How can I Know the servlet root directory for documents and modify it?

2004-05-26 Thread Shapira, Yoav
Hi, Remember, getRealPath doesn't work in a packed WAR file. Yoav Shapira Millennium Research Informatics -Original Message- From: stan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 9:43 AM To: Tomcat Users List Subject: Re: How can I Know the servlet root directory for