commit « Forward « JSP-Servlet Q&A





1. Cannot forward after response has been committed    coderanch.com

Hello! My web hotel upgraded from Tomcat 3.X to 4.1.18 yesterday and now my site doesn't work anymore. I have a html page where users fill out their username and password. It's a form which posts to a jsp login page. That one looks (partially) like this: if (myBean.login(username, password)) { session.setAttribute("firstname", myBean.getFirstname()); session.setAttribute("lastname", myBean.getLastname()); session.setAttribute("userid", myBean.getUserId()); response.sendRedirect("index2.jsp"); This worked fine ...