Following the discussion about error handling in JSP, and several problems that people have encountered (like "trying to write more than content length")... I remember someone saying that the reference implementation uses a special writer that has a discard method on it, so when an exception is found all that was previously written is silently discarded thus the sendRedirect will work. But my concern is that I agree that this will work... to a certain extent. Indeed, the writer class cannot bufferize all the response so if the exception appears after the buffer is full (thus it has been flushed), the discard method won't at least discard what was previously flushed, thus the sendRedirect will likely generate the "trying to write more than content length" error message... But I am really wondering how to implement that in a clean way. Any idea ? Yan -- http://eowyn.fr.eu.org/~yan/ | [EMAIL PROTECTED] SocialNet: Where people connect... http://www.socialnet.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JSP-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".