From issues-return-10509-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Sat Jun 14 13:28:27 2008 Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 24019 invoked from network); 14 Jun 2008 13:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2008 13:28:27 -0000 Received: (qmail 9728 invoked by uid 500); 14 Jun 2008 13:28:29 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 9690 invoked by uid 500); 14 Jun 2008 13:28:28 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 9681 invoked by uid 99); 14 Jun 2008 13:28:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jun 2008 06:28:28 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jun 2008 13:27:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ABB80234C146 for ; Sat, 14 Jun 2008 06:28:05 -0700 (PDT) Message-ID: <1544204858.1213450085702.JavaMail.jira@brutus> Date: Sat, 14 Jun 2008 06:28:05 -0700 (PDT) From: "James Holmes (JIRA)" To: issues@struts.apache.org Subject: [jira] Commented: (WW-2246) Impossible to use custom jsp taglibs inside custom FM template tags In-Reply-To: <2187449.1192185638205.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44160#action_44160 ] James Holmes commented on WW-2246: ---------------------------------- Is this a Struts 2 issue or a Freemarker issue? At first glance it seems like a Freemarker issue. > 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.