>
> Meta m = new Meta();
> m.setHttpEquiv("refresh");
> m.setContent("0; url=http://" + req.getHeader("Host") +
> "/servlet/SomeServlet;");
> Head h = new Head();
> h.addElement(m);
> Html html = new Html(h);
> out.println(html);
>
> It's not fast, but it works.
> Maybe someone on this list knows a better way?
ummm...what isn't fast about that? also, you can cut the amount of typing
down a bit...
out.println ( new Html ( new Head (
new Meta().setHttpEquiv("refresh")
.setContent("0; url=http://" + req.getHeader("Host") +
"/servlet/SomeServlet;")
))
)
-jon
___________________________________________________________________________
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