put your html in public-html directory of webserver
server.in servlet call the html using servletresponse
object sendRedirect() method
ex:response.sendRedirect("http:/servername:8080/ex.html")

                             sashidhert
--- Kevin Mukhar <[EMAIL PROTECTED]> wrote:
> "C.S.Sriram" wrote:
> >
> > 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??
>
> Yes. Open a file. Read a file. Send contents to
> response output stream.
>
>
___________________________________________________________________________
> 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
>

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
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