struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-2246) Impossible to use custom jsp taglibs inside custom FM template tags
Date Fri, 13 Jun 2008 00:14:06 GMT

     [ https://issues.apache.org/struts/browse/WW-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Don Brown updated WW-2246:
--------------------------

    Fix Version/s:     (was: 2.1.4)
                   2.1.3

> Impossible to use custom jsp taglibs inside custom FM template tags
> -------------------------------------------------------------------
>
>                 Key: WW-2246
>                 URL: https://issues.apache.org/struts/browse/WW-2246
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.9
>         Environment: Windows OS, J2SE 1.6, J2EE 5, Struts2
>            Reporter: Alexey Koloskov
>             Fix For: 2.1.3
>
>
> I create custom UI tags for Struts2 using FreeMarker. Inside FreeMarker
> template I use custom jsp tags library, e.g. displaytag as follows:
> <#assign display=JspTaglibs["http://displaytag.sf.net/el"]>
> <@display.table name="parameters.entities"/>.
> But during template rendering I get a such error:
> "freemarker.template.TemplateModelException: out != pageContext.getOut().
> Out is org.apache.jasper.runtime.JspWriterImpl@173b3fa pageContext.getOut()
> is null" at
> freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:156).
> It seems like a bug because for the first time
> FreeMarkerPageContext.getOut() always return null, and the check if(out !=
> pageContext.getOut()) is always true for JSPWriter.
> Stack trace:
> error when rendering out != pageContext.getOut(). Out is org.apache.jasper.runtime.JspWriterImpl@173b3fa
pageContext.getOut() is null
> The problematic instruction:
> ----------
> ==> user-directive display.table [on line 4, column 1 in template/xhtml/EntityList.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.template.TemplateModelException: out != pageContext.getOut().
> Out is org.apache.jasper.runtime.JspWriterImpl@173b3fa pageContext.getOut() is null
> at
> freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:156)
> at freemarker.core.Environment.visit(Environment.java:220)
> ...(tale is omitted)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message