I have a jsp page that processes a login. The (simplified) code is something like this:

<%@ page language="java"%>
<%
String userid = request.getParameter("userid");
String pw = request.getParameter("pw");

/* code to check user id and password */

if (user not found)
  pageContext.forward("login.jsp");
else
  pageContext.forward("userpage.jsp");
%>

Please note that nowhere in my jsp code do I use the "out" object or send some outputs back to the client. Yet, I am getting this "Cannot forward after response has been committed" error. If I comment out the forward statements then the error disappears. Any help is appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to