Siddharth,
Thanks. This seems to work for us.
--Steve
----- Original Message ----- 
From: "Sharma, Siddharth" <[EMAIL PROTECTED]>
To: "POI Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 11:19 AM
Subject: RE: help: i need to read an xls template file in a web application


> You can use the classloader to load the excel file as an InputStream
> provided you place the excel file in the classpath such as
"WEB-INF/classes"
> directory of the web application.
>
> java.io.InputStream iStream =
>
> this.getClass().getClassLoader().getResourceAsStream("somefile.xls");
>
> There may be something in the POI API to do the same thing abstracting you
> from this piece of code. I am not familiar with that, if one exists
>
>
>
> -----Original Message-----
> From: Steve [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 11:07 AM
> To: POI Users List
> Subject: help: i need to read an xls template file in a web application
>
> in a deployed web application.....
> from a java program on the web server (and also on the app server) I need
> to read an xls file, as a template.
> any idea as to how to find out the path to the xls file,
> or to get it as an InputStream?
> THANKS,
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to