Don't believe everything you read!
My testing has shown that 'forward' always returns to the caller (I've been
bitten by this is JSP pages).
If I was you I'd try this with different engines and see what the outcome
is.
My guess would be that the first forward is causing output to be written to
the PrintWriter and the second forward is then failing, could this be
happening?
Kevin Jones
DevelopMentor
-----Original Message-----
From: Martin Leboeuf [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2000 18:05
To: Kevin Jones; [EMAIL PROTECTED]
Subject: RE: Problem with request dispatching
Hi again !
Thanks for the reply. But still :
Kevin Jones wrote:
> Wrong on both counts I'm afraid - the call can be forwarded to a resource,
> whcih will typically be a servlet or a JSP, and the call will return to
you.
> You typically put a <code>return;</code> statement after the
> RequestDispatcher call,
OK for the fact that I must forward to a servlet (which includes a jsp
page). But for the case of transfer of control, let me insist and ask why,
in the book "Inside servlets" by D. R. Callaway it is said, on page 285,
last paragraph, that :
"Unlike the include() method, control will never return to the servlet
that forwards the request. The forward() method passes all control to the
delegate servlet which..."
Thanks again for the help, Martin.
[EMAIL PROTECTED]
===========================================================================
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