, 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
> 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
@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
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
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
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
>
> 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
) 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
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
>
> 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()
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
11 matches
Mail list logo