I get the following error when I try to forward to a JSP ...

java.lang.IllegalStateException: Cannot forward as OutputStream or Writer has
already been obtained

Here's the piece of code ....

if ( formName.equals("updatePDForm") ) { %>
   <jsp:include page='performUpdatePD.jsp' flush='true'>
        <jsp:param name='userid' value='<%= request.getParameter("userid") %>'/>
   </jsp:include>

   <jsp:forward page='/SubscriberProfile.jsp'>
        <jsp:param name='userid' value='<%= request.getParameter("userid") %>'/>
   </jsp:forward>
<% } %>

The included page does some database processing & works fine. Should I
out.flush() between the include & forward directives? Any help, much
appreciated.

Cheers,

Stephen.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to