if (!forwardByLastPath) {
return defaultPathSB;
}
ObjectValuePair ovp =
(ObjectValuePair)ses.getAttribute(WebKeys.LAST_PATH);
if (ovp == null) {
return defaultPathSB;
}
String lastPath = (String)ovp.getKey();
if (userId != null) {
lastPath = StringUtil.replace(
lastPath, _PATH_PORTAL_PUBLIC_LAYOUT, _PATH_PORTAL_LAYOUT);
}
Map parameterMap = (Map)ovp.getValue();
ActionMapping mapping =
(ActionMapping)moduleConfig.findActionConfig(lastPath);
if (parameterMap == null) {