This could happen if the output stream in the first JSP is not buffered and
some output has been written to it.
If the output from the compiled JSP file is buffered (by using a page
directive with the default value or an explicit size set for buffer as in
<%@ page buffer="5kb" autoFlush="false" %>), then the buffer is cleared
before the request is forwarded. But if the output is not buffered (if you
used a page directive with buffer=none), and if anything has been written to
the buffer, using <jsp:forward> results in an IllegalStateException
Meghana.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Manish Vohra
Sent: Friday, January 05, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: IllegalStateException
hello people
i have a page where i am inserting some data and after inserting i use the
JSP forward tag to forward the user to my homepage.....but the problem is
that even though the data is being inserted...the forward tag does not
work..it gives me an error
"IllegalStateException : already committed resource"
pls help
manish
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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