Taylor Gautier wrote:

> You can't really forward from one JSP to another, because by the time you
> get control, it has already opened an output stream on the output socket.
>

See <jsp:forward>.  All you need to do is make sure that the buffer you declare in
your "page" directive is large enough that the output hasn't been flushed yet, and
you can forward JSP->JSP or JSP->servlet.

Since a JSP page is compiled into a servlet, it's hardly surprising that the
implementation of this uses RequestDispatcher.forward() underneath the covers.
This gives you two more forwarding options:  servlet->servlet and servlet->JSP.

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to