freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <>
Subject [jira] [Commented] (FREEMARKER-59) include_page directive does not work in weblogic
Date Sun, 02 Jul 2017 13:29:03 GMT


Daniel Dekany commented on FREEMARKER-59:

Any reaction?

> include_page directive does not work in weblogic
> ------------------------------------------------
>                 Key: FREEMARKER-59
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Improvement
>          Components: engine, jsp
>    Affects Versions: 2.3.24-incubating, 2.3.25-incubating, 2.3.26-incubating
>         Environment:  java 8 / weblogic
>            Reporter: Dawid van der Merwe
>              Labels: newbie
>   Original Estimate: 24h
>  Remaining Estimate: 24h
> The include_page directive implemented in freemarker.ext.servlet.IncludePage does not
handle jsp includes correctly in weblogic 12c (only version tested).
> This seems to be because the HttpServletResponseWrapper (wrappedResponse) created on (line 105) only overrides getWriter() and not getOutputStream(). Weblogic
jsp's seem to write to the response's servlet output stream and not its writer.
> The effect is that the output of the jsp is written directly to the response's output
and not to the freemarker environment's output.
> I corrected the behaviour by also overriding  getOutputStream() and using commons-io's
WriterOutputStream to convert the stream's bytes.
> I can provide my (hasty) patch if required.

This message was sent by Atlassian JIRA

View raw message