I wasn't actually thinking about the amount of code, but rahter the speed of
the whole refresh thing.
I have also changed the background color for the response in the doPost to the
same as doGet so it don't *flash* with the grey color that's default.
I guess I'm just nit-picking, but I'm in the learning process for servlets.
And thanks for the tip.
Stein
jon * wrote:
>
> >
> > 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
>
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.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