RE: application.getRealPath() in JSP from a subdirectory

2009-01-31 Thread Qiao Jin
, 2009 11:09 PM To: Tomcat Users List Subject: Re: application.getRealPath() in JSP from a subdirectory Qiao Jin wrote: > Serving mydomain.com, what I have is one application in an unpacked > directory, 'app-root', with jsp files located in the root dir or its > subdirs. The Host f

RE: application.getRealPath() in JSP from a subdirectory

2009-01-31 Thread Caldarale, Charles R
> From: Qiao Jin [mailto:bra...@gmail.com] > Subject: RE: application.getRealPath() in JSP from a subdirectory > > Could you elaborate a bit on your statement: "Using > getRealPath() inside an app server of any kind is > pretty much always a Bad Idea"? The contai

Re: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Mark Thomas
@apache.org] > Sent: Friday, January 30, 2009 9:23 PM > To: Tomcat Users List > Subject: Re: application.getRealPath() in JSP from a subdirectory > > Qiao Jin wrote: >> Chuck, thanks for your response. It turns out that the auto-deploy switch >> does affect the sit

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
ers List Subject: Re: application.getRealPath() in JSP from a subdirectory Qiao Jin wrote: > Chuck, thanks for your response. It turns out that the auto-deploy switch > does affect the situation. New subdirs created after the auto-deploy is > turned off are no longer being treated as sep

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
January 30, 2009 7:14 PM To: Tomcat Users List Subject: RE: application.getRealPath() in JSP from a subdirectory > From: Qiao Jin [mailto:bra...@gmail.com] > Subject: RE: application.getRealPath() in JSP from a subdirectory > > In my case, I need to list all the files under an image d

Re: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Mark Thomas
le()'. It didn't work. File(URI) > requires an URI with the "file" scheme. > > > Qiao > > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Friday, January 30, 2009 12:09 PM > To: Tomcat Users List >

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Caldarale, Charles R
> From: Qiao Jin [mailto:bra...@gmail.com] > Subject: RE: application.getRealPath() in JSP from a subdirectory > > In my case, I need to list all the files under an image directory. Perhaps you could use the customized directory listing capability of the DefaultServlet: http://tomca

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Martin Gainty
) and fed to 'new File()'. It didn't work. File(URI) > requires an URI with the "file" scheme. > > > Qiao > > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Friday, January 30, 2009 12:09

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
om: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, January 30, 2009 12:09 PM To: Tomcat Users List Subject: RE: application.getRealPath() in JSP from a subdirectory > From: Qiao Jin [mailto:bra...@gmail.com] > Subject: application.getRealPath() in JSP from a subdirectory >

RE: application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Caldarale, Charles R
> From: Qiao Jin [mailto:bra...@gmail.com] > Subject: application.getRealPath() in JSP from a subdirectory > > I am using Tomcat 6.0.18, JDK 1.5 on CentOS 5. From within a JSP page, > applicaton.getRealPath() is returning results that I wasn't expecting. Using getRealPath()

application.getRealPath() in JSP from a subdirectory

2009-01-30 Thread Qiao Jin
I am using Tomcat 6.0.18, JDK 1.5 on CentOS 5. From within a JSP page, applicaton.getRealPath() is returning results that I wasn't expecting. Say, my application root directory in CentOS is "app-root". From within app-root/dir-a/test.jsp, I am using application.getRealPath(). Here are the resul