| Author |
forwarding a servletResponseWrapper
|
todd hughes
Greenhorn
Joined: Apr 16, 2003
Posts: 3
|
|
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?
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
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
|
 |
todd hughes
Greenhorn
Joined: Apr 16, 2003
Posts: 3
|
|
|
Nothing is posted prior to the forward.
|
 |
todd hughes
Greenhorn
Joined: Apr 16, 2003
Posts: 3
|
|
|
Nothing is posted prior to the forward.
|
 |
 |
|
|
subject: forwarding a servletResponseWrapper
|
|
|