final String[] names = LdiStringUtil.split(mappingPath, URL_DELIMITER); // e.g. [sea, land] if /sea/land/ final LaContainer root = container.getRoot(); // because actions are in root final String rootAction = buildActionName(pathResource, null, "root"); if (names.length == 0) { // root action, / => rootAction if (hasActionDef(root, rootAction)) { if (index == 0) { // first loop final String directAction = buildActionName(pathResource, null, currentName); if (hasActionDef(root, directAction)) { if (executeHandlerIfFound(pathResource, handler, directAction, buildParamPath(names, nextIndex))) { final String wholePkgAction = buildActionName(pathResource, currentName + "_", currentName); if (hasActionDef(root, wholePkgAction)) { if (executeHandlerIfFound(pathResource, handler, wholePkgAction, buildParamPath(names, nextIndex))) { final String actionName = buildActionName(pathResource, pkgSb != null ? pkgSb.toString() : null, classPrefix); if (hasActionDef(root, actionName)) { if (executeHandlerIfFound(pathResource, handler, actionName, buildParamPath(names, nextIndex))) { final String morePkgActionName = buildActionName(pathResource, pkgSb.toString(), classPrefix); if (hasActionDef(root, morePkgActionName)) { if (executeHandlerIfFound(pathResource, handler, morePkgActionName, buildParamPath(names, nextIndex))) { final String wholePkgActionName = buildActionName(pathResource, pkgSb.toString(), classPrefix); if (hasActionDef(root, wholePkgActionName)) { if (executeHandlerIfFound(pathResource, handler, wholePkgActionName, buildParamPath(names, nextIndex))) {
final String[] names = LdiStringUtil.split(mappingPath, URL_DELIMITER); // e.g. [sea, land] if /sea/land/ final LaContainer root = container.getRoot(); // because actions are in root final String rootAction = buildActionName(pathResource, null, "root"); if (names.length == 0) { // root action, / => rootAction if (hasActionDef(root, rootAction)) { if (index == 0) { // first loop final String directAction = buildActionName(pathResource, null, currentName); if (hasActionDef(root, directAction)) { if (executeHandlerIfFound(pathResource, handler, directAction, buildParamPath(names, nextIndex))) { final String wholePkgAction = buildActionName(pathResource, currentName + "_", currentName); if (hasActionDef(root, wholePkgAction)) { if (executeHandlerIfFound(pathResource, handler, wholePkgAction, buildParamPath(names, nextIndex))) { final String actionName = buildActionName(pathResource, pkgSb != null ? pkgSb.toString() : null, classPrefix); if (hasActionDef(root, actionName)) { if (executeHandlerIfFound(pathResource, handler, actionName, buildParamPath(names, nextIndex))) { final String morePkgActionName = buildActionName(pathResource, pkgSb.toString(), classPrefix); if (hasActionDef(root, morePkgActionName)) { if (executeHandlerIfFound(pathResource, handler, morePkgActionName, buildParamPath(names, nextIndex))) { final String wholePkgActionName = buildActionName(pathResource, pkgSb.toString(), classPrefix); if (hasActionDef(root, wholePkgActionName)) { if (executeHandlerIfFound(pathResource, handler, wholePkgActionName, buildParamPath(names, nextIndex))) {