users@jersey.java.net

Re: [Jersey] JSP multiple <c:import> issue

From: Franz Wong <franzwong_at_gmail.com>
Date: Wed, 4 Aug 2010 18:00:27 +0800

Hi,

A rough guess is the getPageContext method of javax.servlet.jsp.JspFactory
implemented by the web container you are using. Did you try outputing more
than 8192 bytes without using Jersey?

Franz

On Wed, Aug 4, 2010 at 4:57 AM, Justin Emery <justin.emery_at_gmail.com> wrote:

> Hi,
>
> I am returning Viewable objects to requests in order to have a JSP process
> the output. In the JSP I have a <c:forEach> loop which contains a <c:import>
> tag, in order to insert a fragment of output from another resource. The
> importing is working, but once the length of output reaches 8192 bytes the
> client receives no more content. In the logs I see the following exception:
> java.lang.IllegalStateException: Cannot forward after response has been
> committed
>
> After some experimentation I have found:
> - Simply using two <c:import>s has the same issue, i.e. the <c:forEach>
> loop appears to be irrelevant.
> - A single <c:import> referring to a large file does work with content
> length greater than 8192.
>
> I would assume 8192 is the length of some buffer.
>
> Has anyone else experienced this issue? Does this sound like a bug in
> Jersey?
>
> Thanks,
>
> Justin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>