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:
Rainer Hermanns
2008-06-23 12:31:51 +00:00
parent 295150b5e9
commit f7f3deedc8
2 changed files with 2 additions and 2 deletions
@@ -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");
@@ -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");