File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Automatic flushing of response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Automatic flushing of response" Watch "Automatic flushing of response" New topic

Automatic flushing of response

vineet kumar chaudhry
Ranch Hand

Joined: Apr 02, 2011
Posts: 45

I am using JSP code to send an email(SendEmail is class file which extends mail API)

Now when the data is less mail is being sent and the page is being forwarded

But when dat is large the mailisent but forwarding is not done
It is saying "Cannot write the response once it is commited(Something like this)"

I am quite sure that thi s is problem of automatic flushing of output stream

How can I avoid this problem?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Move the Java code out of a JSP and into a Java class where it belongs.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Automatic flushing of response
jQuery in Action, 3rd edition