>
> Has anyone had any luck using the jsp:request action with the forward
> attribute?  None of the examples use this and I get the following error
> any time I use it:
>
> java.lang.IllegalStateException: Can't forward! OutputStream or Writer
> has already been obtained.
>
> paul

        Paul,
                If you read the JSP spec, it clearly states that if
        any output as been flushed from the page to the response
        output stream of the underlying Servlet that this operation
        shall fail.

        I dont know the circumstances of your particular JSP but I
        suspect that it may be structured such that by the time you are
        attempting the forward that it is too late in the process.

        Unfortunately this is a semantic associated with the Servlet
        layer that we cannot avoid in some circumstances.

        Ensuring that your JSP buffer size is sufficiently large to
        avoid the JspWriter from flushing to the output stream will
        avoid this.

        Rgds

        - Larry Cable.

        P.S
                Now that I come to think of it, this could be a limitation
        of the current RI that we are working to resolve.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to