This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 63195

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]
Have you checked out Aspose?
subject: Automatic flushing of response
It's not a secret anymore!