I am running Tomcat 3.2.1.

I am getting the following error.

javax.servlet.ServletException: Cannot forward as OutputStream or Writer
has already been obtained

My code is quite simple.  The jsp that I am including, example1.jsp,
does not write anything to the
output buffer.

<%
RequestDispatcher rd1 =
  request.getRequestDispatcher("example1.jsp");
rd1.include(request, response);

RequestDispatcher rd2 =
  request.getRequestDispatcher("example2.jsp");
rd2.forward(request, response);
%>

The Apache Bug Database, bug #250, said this is fixed in 3.2.  Is there
something
wrong with my code?

Bill

Reply via email to