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!

response.setXXX() before rd.include() closing stream

843842Mar 31 2009 — edited Apr 4 2009
Hi,

I'm using the following code snippet in one of my applications...

-------------
response.setDateHeader("...",xx);
response.setStatus(304);

RequestDispatcher rd = request.getRequestDispatcher("abc");
rd.include(req,res);
-----------

I'm getting stream already closed error message on the console. It seems, response.set is committing the response.
Is this true??

How cld I make the steam open till include call??

PS: I'm using JBoss.

Thanks,
Suresh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2009
Added on Mar 31 2009
1 comment
302 views