RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
Actually, the line end after the first line is sent back to the client, with apropriate html headers invented. %@ page language=java%%// now the line end is in java not in html Yep, looks ugly. What is even worse is code that sends a redirect and does NOT do a return. -Original

Re: Cannot forward after response has been committed

2005-09-19 Thread Michael Lai
I have an index.jsp page that checks a user's access level: %@ page language=java errorPage= % % String userid = (String)session.getAttribute(UserId); if (userid == null) { pageContext.forward(login.jsp); } else { String access = (String)session.getAttribute(Access); switch

RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
the response has been committed by outputting the above \r\n or whatever -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 10:34 PM To: Tomcat Users List Subject: Re: Cannot forward after response has been committed I have an index.jsp page that checks

Re: Cannot forward after response has been committed

2005-09-19 Thread Michael Lai
I put a 'return' statement after every 'forward' statement in all my jsp pages and now it seems to be working. Thanks for your feedback. Actually, my linebreak occurs in the % % tags. I think my email client might have reformatted my output before sending. [EMAIL PROTECTED] wrote: You