Doesn't out.println() output to an error log in the servlet engine?
Instead, just make an explicit reference to the strData string in your JSP
code:

<%
File file = new File("./public_html/xml/cc.xml");
FileInputStream fis = new FileInputStream(file);
byte[] data = new byte[fis.available()];
String strData = new String(data);
%>
Hey this is the string <%= strData %>

-- Jake


----- Original Message -----
From: Paul Beer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 25, 2000 11:38 AM
Subject: outputting a fileinputstream


> I am trying to load an xml packet off a local directory and display it in
a
> jsp template... to no avail... could someone lok at this code and let me
> know why it displays nothing ?  when i do a string.length() i get 3451 so
I
> know it is reading the stream... I just cant output it in JSP.
>
> thanks,
> paul
>
> code:
>
> File file = new File("./public_html/xml/cc.xml");
> FileInputStream fis = new FileInputStream(file);
> byte[] data = new byte[fis.available()];
> String strData = new String(data);
> out.println(strData);
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to