SRV.8.4 forward


SRV.8.4 forward

The forward method of the RequestDispatcher interface may be called by the calling servlet only if no output has been committed to the client. If output exists in the response buffer that has not been committed, it must be reset (clearing the buffer) before the target servlet's service method is called. If the response has been committed, an IllegalStateException must be thrown.

The path elements of the request object exposed to the target servlet must reflect the path used to obtain the RequestDispatcher . The only exception to this is if the RequestDispatcher was obtained via the getNamedDispatcher method. In this case, the path elements of the request object reflect those of the original request.

Before the forward method of the RequestDispatcher interface returns, the response must be committed and closed by the servlet container.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net