WW-2164 Backport to 2.0.x branch for error in url when namespace is blank.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@574349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nils-Helge Garli
2007-09-10 19:55:07 +00:00
parent b2dc2d3e0e
commit 6793ca3737
@@ -108,12 +108,12 @@ public class PortletUrlHelper {
if(!action.startsWith("/") && !namespace.endsWith("/")) {
resultingAction.append("/");
}
resultingAction.append(action);
LOG.debug("Resulting actionPath: " + action);
}
resultingAction.append(action);
if(TextUtils.stringSet(method)) {
resultingAction.append("!").append(method);
}
LOG.debug("Resulting actionPath: " + resultingAction);
params.put(PortletActionConstants.ACTION_PARAM, new String[] { resultingAction.toString() });
PortletURL url = null;