<script>
self.location=home;
</script>
or
<meta http-equiv='refresh' content=0 url='http://xxx'>
----- Original Message -----
From: "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 3:31 AM
Subject: must be a better way
> Below is a portion of code that I use to exit a servlet and redirect the web
> browser to a different HTML page after writing data to a db.
>
>
>
> out.println("<HTML><HEAD>");
> out.println("<SCRIPT language=\"javascript\">");
> out.println("var home=\"http://xxx.xxx.xxx.xx/next.html\";");
> out.println("setTimeout(\"location.href=home;\", 1);");
> out.println("</SCRIPT><HEAD><BODY>");
> out.println("</BODY></HTML>");
>
>
> There must be a better way than this to jump to a new HTML page!
> Please, any suggestions?
> Thanks.
>
> ___________________________________________________________________________
> 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