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

Reply via email to