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,

Kevin Jones
DevelopMentor

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Martin Leboeuf
Sent: 12 January 2000 15:35
To: [EMAIL PROTECTED]
Subject: Problem with request dispatching


Hi !

If I understand correctly, the forward() method of the RequestDispatcher
object passes the request to the designated URL, (which must not be a
servlet, right ?), and control should never return to the servlet which did
the fowarding.

My (second) question is : is this really true ? In the affirmative, then it
seems the is a bug somewhere because I have some code in my servlet after
the forwarding code, and it gets executed. To make matters worst, the fact
that execution continues or not seems to be dependant on the code after the
forward() statement. In my case test case, execution continues if I put a
System.out.println() but does not if I put a second forward() statement. I
know that this sounds pretty esoteric, but since I cannot understand what is
happening myself, I am asking you.

Btw, I am using JWS 2.0.

Thanks for your 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

===========================================================================
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