mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-2878 portlet dispatching after action phase renders in wrong namespace
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@670542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -142,7 +142,7 @@ public class PortletResult extends StrutsResultSupport implements PortletActionC
|
||||
// View is rendered outside an action...uh oh...
|
||||
String namespace = invocation.getProxy().getNamespace();
|
||||
if ( namespace != null && namespace.length() > 0 && !namespace.endsWith("/")) {
|
||||
namespace += namespace + "/";
|
||||
namespace += "/";
|
||||
|
||||
}
|
||||
res.setRenderParameter(ACTION_PARAM, namespace + "renderDirect");
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@ public class PortletVelocityResult extends StrutsResultSupport {
|
||||
// View is rendered outside an action...uh oh...
|
||||
String namespace = invocation.getProxy().getNamespace();
|
||||
if ( namespace != null && namespace.length() > 0 && !namespace.endsWith("/")) {
|
||||
namespace += namespace + "/";
|
||||
namespace += "/";
|
||||
|
||||
}
|
||||
res.setRenderParameter(PortletActionConstants.ACTION_PARAM, namespace + "freemarkerDirect");
|
||||
|
||||
Reference in New Issue
Block a user