You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/07/12 17:28:05 UTC
[jira] Commented: (WW-1999) Struts2+Sitemesh+FreeMarker: Web page
not display complete
[ https://issues.apache.org/struts/browse/WW-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44361#action_44361 ]
Don Brown commented on WW-1999:
-------------------------------
Hmm...this seems to be a sitemesh issue, as they really should override the content length as necessary. Can you think of anything Struts should be doing differently (other than setting it to -1)? :)
> Struts2+Sitemesh+FreeMarker: Web page not display complete
> -----------------------------------------------------------
>
> Key: WW-1999
> URL: https://issues.apache.org/struts/browse/WW-1999
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Mechanism
> Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8
> Environment: Struts2+Sitemesh+FreeMarker
> Reporter: Firm Goal
>
> If the bedecorated page has set response content-length, the Sitemesh FreeMarker Plugins will use this content-length, so the result page's content length will equals to the bedecorated page's length, then the web page not display complete.
> Modifiy FreeMarkerPageFilter:
> Line 157:
> template.process(model, res.getWriter());
> to:
> res.setContentLength(-1);
> template.process(model, res.getWriter());
> can resovled this problem.
> Maybe there are more greater ways to resovled this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.