Try looking up the sendRedirect function implemented by
the HttpServletResponse class.

eg.
res.sendRedirect("index.html");

/shaoming

------------------------
  From: rahula <[EMAIL PROTECTED]>
  Subject: Redirecting to html page
  Date: Sat, 10 Apr 1999 22:54:42 +0530
  To: [EMAIL PROTECTED]


> Hi
>  I have a servlet that does some database operations and after the completion
> depending on the results it is suppposed to
> load a welcome.html or login failure.html. My problem is that how do i load these
> pages. Do I have to write them using the getwriter or getoutputstream? Isn't there
> any function in the servlet api's  like redirect("welcome.html") that will load the
> appropriate html.
> Any help in this regards will be highly appreaciated.
> Regards
>  rahul
>
> ___________________________________________________________________________
> 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
>

---------------End of Original Message-----------------

--------------------------------------------------------
Date: 04/12/99     Time: 09:32:39
--------------------------------------------------------

___________________________________________________________________________
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