try reset() ing the response before sending the redirect. You should
not write to the response object if you are going to redirect/forward it
to another resources that will output to the response object.
response.reset();
also redirecting will not stop the thread from
executing the remainder of
ok, several problems here:
1. place a 'return;' after your sendRedirect()
2. remove unintended whitespace from your jsp:
change
%
jsp:forward page=daily.jsp/jsp:forward
%
to
%jsp:forward page=daily.jsp/jsp:forward%
3. post your error messages with stack trace. I happen
The return works. Thanks. I still really don't understand what was happening that it
was committing the response. It was giving me a java.lang.IllegalStateException :
cannot forward response has been committed... And it only gives me this error on this
page...the other pages have the same