wood burning stoves 2.0*
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
Author

Automatic flushing of response

vineet kumar chaudhry
Ranch Hand

Joined: Apr 02, 2011
Posts: 45
Hi

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?
Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automatic flushing of response
 
Similar Threads
problem in running a servlet
when i retrive data from access it showing empty page in tomcat
response has been committed
Number Format Exception
Complex Page Layout