> > As a general rule, though, the forward tag seems to work much
> > better when it is used early on (before the <HTML> tag) in the JSP.
>
> Yes, this is true. And it seems to be the same with response.sendRedirect()
> as well.
>
> Very strange indeed. Or does any of you have a good explanation?

If you've outputed a header to the client you can't redirect
_after_ that, that is you can't redirect when a header i.e
Content-type: text/html has been written to the client, unless
you've buffered your output. Since a response.sendRedirect()
sends a header stating the client to redirect(ASIS).

        ..bip

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to