You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2004/01/08 01:00:54 UTC

[OT] reading pdf file from mapped network drive in servlet

Hi
I am running tomcat on my windows 2000 machine 
and i have mapped a network drive to it
I am trying to read a pdf file from the network drive,
and it is giving me access denied error
my servlet code is
File file = new File("F:\\chart\\test.pdf");
System.out.println(file.exists()); (output is false)

How do i read this file, this code works fine in
standalone program, but fails in servlet

Ashish

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org