I am having trouble forwarding a wrapped servlet response. When the HttpServletResponseWrapper object encounters a dispatcher.forward it throws an illegalStateException. If I change the dispatcher.forward to a dispatcher.include, the wrapper works. Is there a way to make the wrapper follow forwards, as well as includes?
Author and all-around good cowpoke
posted 14 years ago
From the API it looks like you get that exception if your servlet has already an output stream or writer. Is that possible in your situation? Do you output anything before calling forward? Bill