hi alex,
try reading the file with the FileReader

  File file = new File("test.html");
  FileReader fr = new FileReader(file);
  char[] c = new char[256];
  while (fr.read(c) != -1) {
    for (int i = 0; i < 256; i++)
        out.print(c[i]);    
  }

Greetings Thorsten

-----Urspr�ngliche Nachricht-----
Von: Alex Kachanov [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. November 2001 08:00
An: [EMAIL PROTECTED]
Betreff: how to include static file into servlet?


instead of typing all those out.println()
I just want to include into servlet 
a static file which contains a huge peice of html code

how can I do this?

with best wishes
Alexander Kachanov

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to