All of our forwarding has broken when trying to run under Tomcat 4.0.
 
Below is some example code causing us the problem - all of it works great under Tomcat 3.2!
 
We have a small handful of JSPs which use...
 
<jsp:useBean id="sessionBean" scope="session" class="org.dlese.dpc.catalog.SessionBean"/>
<jsp:forward page="<%= sessionBean.getCurrentPage() %>" />
 
.... which now returns a "Resource Not Found Error"
 
and have used....
 
<jsp:useBean id="sessionBean" scope="session" class="org.dlese.dpc.catalog.SessionBean"/>
<%
String jspPage = sessionBean.getCurrentPage();
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(jspPage);
dispatcher.forward(request, response);
%>
 
... which now throws IllegalStateException.
 
Same thing happens when our serlvets forward using RequestDispatcher. I realize the exception is suppose to indicate that something has been written to the response already or that the response buffer has been flushed, but we didn't change any code - nothing is being written before forwarding that I know of ????
 
any help would be greatly appreciated.
 
Dave Deniman

Reply via email to