tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: servlet response.sendRedirect() illegal state exception
Date Thu, 26 Jun 2003 13:07:08 GMT


>    In my servlet response.sendRedirect i am getting illegal state
>...could pl tell me how to avoid this...whats does it mean...

It's actually pretty clearly indicates in the JavaDoc for

Don't write to the response before redirecting it.  If you can help it,
don't even open a writer or output stream to the response before
redirecting it.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message