[27/Apr/2000:14:52:46] failure (18358): Internal error: exception thrown
from the servlet service function (uri=/m44.jsp): java.io.IOException:
Error: Attempt to clear a buffer that's already been flushed

I'm using iPlanet.  I've seen a number of members getting this same error
when doing <jsp:include or <jsp:forward tags.  I'm using a <jsp:forward tag
and getting it.

Is there some syntax/logic error related to using the <jsp:forward tag after
other java code within the JSP?

My code validates an e-mail address that was entered on the page and then
sends the e-mail (that part works fine.)  THEN, it tries to <jsp:forward to
either a success.html or fail.html page, depending upon the success of the
e-mail transmission.

I have my <jsp:forward placed just after the sendEmail() call.  The servlet
which is generated shows no sign of knowing it should forward to another
page.  And the result is that the e-mail is sent, but no forward to another
page is done.  The error log shows the error listed above.

When I've tried a preliminary test putting the forwarding logic at the top
of my JSP logic, the forwarding works after a second click of the Submit
button on the  page.  I can probably figure out a way to do it all with one
click, but I'm still baffled at the error.

Must all forwarding be done at the beginning of the JSP?  Or, can you do
some processing and then forward?

I saw other posts related to this error which indicated it was a 'bug'
related to Tomcat, and that this bug was resolved with the newest release
(last week).  I saw another post stating that Orion server gives more
valuable feedback when the problem is encountered.  WHAT'S THE FEEDBACK?  Is
there something specific causing this very general I-O error?

It's nice that some vendors are either resolving it or providing more
feedback, but does anyone know what specifically is causing it?

Thanks in advance for any insight, gang,

Ken


Ken Wasetis
Xqsite - a divine interVentures company
[EMAIL PROTECTED]
525 W. Monroe
Chicago, IL

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to