Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 54065 invoked from network); 13 Apr 2009 20:39:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 20:39:29 -0000 Received: (qmail 8151 invoked by uid 500); 13 Apr 2009 20:39:29 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 8073 invoked by uid 500); 13 Apr 2009 20:39:29 -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 8064 invoked by uid 99); 13 Apr 2009 20:39:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 20:39:29 +0000 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; Mon, 13 Apr 2009 20:39:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 337EC29A0012 for ; Mon, 13 Apr 2009 13:39:06 -0700 (PDT) Message-ID: <1481102918.1239655146209.JavaMail.jira@brutus> Date: Mon, 13 Apr 2009 13:39:06 -0700 (PDT) From: "Dushyant Pandya (JIRA)" To: issues@struts.apache.org Subject: [jira] Created: (WW-3087) PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result ------------------------------------------------------------------------------------------------------------------------------------- Key: WW-3087 URL: https://issues.apache.org/struts/browse/WW-3087 Project: Struts 2 Issue Type: Bug Affects Versions: 2.0.11.2 Environment: Any Environment Reporter: Dushyant Pandya When a portlet is targetted for an "event" and if the targeted action forwards to a freemarker result then the DirectRenderFromEventAction is executed in the consecutive "render" request and the DirectRenderFromEventAction relies on the RENDER_DIRECT_LOCATION i.e., "struts.portlet.renderDirectLocation" on the session to execute the freemarker template. The "PortletFreemarkerResult" class never puts the "location" into the session and hence the DirectRenderFromEventAction is not able to execute the Freemarker result and throws PortletException. The fix would be to put following two lines in the "executeActionResult(String,ActionInvocation)" method of the "org.apache.struts2.views.freemarker.PortletFreemarkerResult" class Map sessionMap = invocation.getInvocationContext().getSession(); sessionMap.put(PortletActionConstants.RENDER_DIRECT_LOCATION, location); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.