Hi Sriram,

Yes, we can call a HTML file from servlet using the sendRedirect

The syntax for the same is

res.sendRedirect("your HTML file location ") (res is a response object)

Regards

Ramesh


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> C.S.Sriram
> 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
>

___________________________________________________________________________
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