Gabriel J Zimmerman wrote:
>
> Hi,
>
> I have created a custom tag library, which if a certain condition is
> met, forwards the request and response to another page. However,
> unfortunately, when the page is too long (before the forward
> evaluation), I get the following error: 500 Internal Server Error.
> Response has already been committed.
>
> I assume this means that the ServletResponse has already started
> printing out that page, so it can't forward to the other page, because
> it is too far along in the previous one.
>
> I'm sure I could stop this from happening by creating a new tag that
> forced the page to be evaluated before it printed out the page, but this
> is inelegant. Is there anyway that I can change settings inJRun  or
> insert code to force the evaluation of the entire page without
> committing itself?

Try increasing the size of the page buffer:

  <%@ page buffer="16kb" %>

The default size is 8 kb.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
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