Fixed double slash when portlet namespace is defined

WW-1641


git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@498090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald J. Brown
2007-01-20 08:33:19 +00:00
parent 4cf46d99a9
commit c0513c0e07
@@ -246,10 +246,12 @@ public class Jsr168Dispatcher extends GenericPortlet implements StrutsStatics,
}
StringBuffer fullPath = new StringBuffer();
if (TextUtils.stringSet(portletNamespace)) {
fullPath.append(portletNamespace + "/");
fullPath.append(portletNamespace);
}
if (TextUtils.stringSet(namespace)) {
fullPath.append(namespace + "/");
fullPath.append(namespace).append("/");
} else {
fullPath.append("/");
}
fullPath.append(defaultAction);
ActionMapping mapping = new ActionMapping();