[
http://www.stripesframework.org/jira/browse/STS-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11924#action_11924
]
Karel Kolman commented on STS-391:
----------------------------------
i'm sorry, i have not been working on the project for a long time now and since
i had not posted nor created a suitable test case for the issue i can't test
the fix.
> Layout tags don't handle huge inserted contents (layout definitions) well,
> usage results in OutOfMemory errors
> --------------------------------------------------------------------------------------------------------------
>
> Key: STS-391
> URL: http://www.stripesframework.org/jira/browse/STS-391
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.4.3
> Reporter: Karel Kolman
> Assignee: Ben Gunter
> Fix For: Release 1.5.4
>
>
> I'm using the Stripes layout tag library and am experiencing difficulties
> rendering huge web pages.
> An example structure is the following (/WEB-INF/jsp/content.jsp file
> generates approximately 13 megabytes of data)
> <%@ taglib uri="http://stripes.sourceforge.net/stripes.tld" prefix="stripes"
> %>
> <stripes:layout-render name="/WEB-INF/jsp/layout.jsp">
> <stripes:layout-component name="body-content">
> <!-- either this -->
> <stripes:layout-render name="/WEB-INF/jsp/content.jsp"/>
> <!-- or this -->
> <jsp:include page="/WEB-INF/jsp/content.jsp" flush="true"/>
> </stripes:layout-component>
> </stripes:layout-render>
> This results in OutOfMemory errors being thrown (and page not being
> displayed), the server has 512MB of heap space available.
> Changing the code in LayoutRenderTag.java from
> BodyContent content = getPageContext().pushBody();
> getPageContext().include(this.name, false);
> getPageContext().popBody();
> getPageContext().getOut().write(content.getString());
> to
> getPageContext().include(this.name, false);
> I am able to render the large jsp files inside the layout-render tags.
> Could this somehow be fixed ? Could you consider adding an additional
> attribute to the layout-render tag that would work without loading the whole
> contents of the inserted subpage into a buffer ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development