aspose file tools
The moose likes JSP and the fly likes Automatic flushing of response Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56191
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Automatic flushing of response
 
Similar Threads
response has been committed
when i retrive data from access it showing empty page in tomcat
Complex Page Layout
problem in running a servlet
Number Format Exception