Title: RE: Can we call a pre-written HTML file directly instead of writing the HTML tags in a servlet ????

Put that HTML File in the public_html and use getResourceAsStream passing its path from the root of the servlet context. Read this file in some byte array (or make a String of it) and put it in <yourvarName>.println();

I hope it solves your problem

Regards

Mahendra



-----Original Message-----
From: C.S.Sriram [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 10, 2000 12:09 PM
To: [EMAIL PROTECTED]
Subject: Can we call a pre-written HTML file directly instead of writing
the HTML tags in a servlet ????


Hi,

Instead of writing the HTML in the servlet code
like
out.println("<HTML><BODY><B>blah blah b<B></BODY></HTML>

can we call a Html file that contains these HTML tags directly into Servlert
code???

Is that possible?? If so how??

Thanks and Regards

Sriram.C.S

___________________________________________________________________________
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