Arun Thomas wrote:
> I understand that all methods should return, but in that case, is it
> legitimate for the forwarding servlet/jsp
> to write to the output stream after the method returns? I know that nothing
> can be committed to the output
> stream prior to performing a forward, but what about after the return? As
> far as I have seen (it may be a matter
> of not having seen enough), there is nothing in the servlet or jsp
> specification that forbids this....
>
Java Servlet Specification Version 2.2, Section 8.4 (bottom of page 40) includes
this sentence:
"Before the forward method of the RequestDispatcher interface
returns, the response must be committed and closed by the
servlet container."
Thus, it is not legal to add anything to the output stream after the forward() call
returns.
>
> -AMT
>
Craig
===========================================================================
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