struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navjot Singh" <navjo...@net4india.net>
Subject RE: FileNotFoundException when creating FileInputStream
Date Thu, 19 Jun 2003 14:59:56 GMT
hi,

May be you are trying to get HTTP file using File Stream,
that's why ;-)

navjot


|-----Original Message-----
|From: douglas reames [mailto:dougrms@hotmail.com]
|Sent: Thursday, June 19, 2003 6:14 PM
|To: struts-user@jakarta.apache.org
|Cc: dougr@rmsfinance.com
|Subject: FileNotFoundException when creating FileInputStream
|
|
|When I attempt to open an XSL file to complete a transformation, I get the
|exception FileNotFound.  Steps:
|
|  [1]  Get file location from properties file without problem:
|            String myXsl =
|getProperties().getProperty("fop.render.article");
|
|                String contents:
|"http://localhost/artimus/pdf/renderPdf.xsl"    ( verified by logging )
|
|  [2]  construct FileInputStream from string, and I get exception
|            FileInputStream in = new FileInputStream(myXsl);
|
|                Err msg:  java.io.FileNotFoundException:
|http:\localhost\artimus\pdf\renderPdf.xsl
|
|Note from the message that FileInputStream appears to change the address.
|
|How do I force the constructor to accept the whole address?
|
|regards,
|douglas reames
|rms finance
|919 929 3465
|
|_________________________________________________________________
|MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
|http://join.msn.com/?page=features/virus
|
|
|---------------------------------------------------------------------
|To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
|For additional commands, e-mail: struts-user-help@jakarta.apache.org
|
|


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


Mime
View raw message