Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

servlet call sendRedirect and get java.lang.IllegalStateException

843842Nov 12 2009 — edited Nov 17 2009
search the web but seems found no result about my situation.

basically I have two 3 jsp and 2 servlet in between.
the 2 servlet both call sendRedirect to redirect to next jsp.

the problem is,
if I finish the normal flow and go back to 1st jsp(via link or browser back button) and re-execute the flow,
the sendRedirect in the servlet (one or both) will throw java.lang.IllegalStateException

if close the brower to restart the flow, everything goes fine.

anyone can advise?
thks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2009
Added on Nov 12 2009
9 comments
434 views