n about Sun Microsystem's Java
> Servlet API Technology.
> Sent: Friday, January 14, 2000 9:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: relative path in servlet
>
> Sun JunXu <[EMAIL PROTECTED]> wrote:
> __
> >thanks,
> >it doesn't work.
Sun JunXu <[EMAIL PROTECTED]> wrote:
__
>thanks,
>it doesn't work. getRealPath(String) cann't return any path.
>and what I want is read from a normal virtual directory on webserver into a
>servlet mounted directory, is there other way?
>
>thank you very much.
Yes, from memory I think i us
lp some of your problems.
Terje Hermanseter
PMSC, Oslo Norway
Sun JunXu <[EMAIL PROTECTED]> on 12.01.2000 09:53:54
Please respond to "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology."
<[EMAIL PROTECTED]>
To:
cchi[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent: Wednesday, January 12, 2000 4:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: relative path in servlet
>
> You have to use getRealPat
Sun JunXu [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 12, 2000 8:55 AM
> To: [EMAIL PROTECTED]
> Subject: relative path in servlet
>
> hi, there,
> how to use a relative path in a servlet? ie. a file exists in
> /home/admin/file.txt, and on webserver, its virt
hi, there,
how to use a relative path in a servlet? ie. a file exists in
/home/admin/file.txt, and on webserver, its virtual directory is
127.0.0.1/apps, in 127.0.0.1/appsclass/app.class, I want to get this file
through relative path ../apps/file.txt.
File file=new File("../apps/file.txt");
tha