protected void resolveAbsolutePath(String input, StringBuilder sb) { final int paramMarkIndex = input.indexOf('?'); final String path = paramMarkIndex >= 0 ? input.substring(0, paramMarkIndex) : input; final String queryString = paramMarkIndex >= 0 ? input.substring(paramMarkIndex) : ""; final ActionPathResolver resolver = getActionResolver(); try { final ActionFoundPathHandler handler = createActionPathHandler(sb, path, queryString); final boolean handled = resolver.handleActionPath(path, handler); if (!handled) { throwLinkActionNotFoundException(path, queryString); } } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } else { final String msg = "Failed to handle action path: " + path; throw new IllegalStateException(msg, e); } } }
@Override protected void lookup() throws JspException { setupModuleConfig(); setupActionForNow(); final int paramMarkIndex = action.indexOf('?'); final String path = paramMarkIndex >= 0 ? action.substring(0, paramMarkIndex) : action; final String queryString = paramMarkIndex >= 0 ? action.substring(paramMarkIndex) : ""; final ActionPathResolver resolver = getActionResolver(); try { final ActionFoundPathHandler handler = createActionPathHandler(path, queryString); final boolean handled = resolver.handleActionPath(path, handler); if (!handled) { throwFormActionNotFoundException(path, queryString); } } catch (Exception e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; } else if (e instanceof JspException) { throw (JspException) e; } else { String msg = "Failed to handle action path: " + path; throw new IllegalStateException(msg, e); } } checkActionMappingExistence(); setupBeanInfo(); }
final String contextPath = extractContextPath(httpReq); final ActionFoundPathHandler handler = createActionFoundPathHandler(httpReq, httpRes, contextPath); // (#to_action) if (resolver.handleActionPath(requestPath, handler)) { // #to_action return;
final String contextPath = extractContextPath(httpReq); final ActionFoundPathHandler handler = createActionPathHandler(httpReq, httpRes, contextPath); // (#to_action) if (resolver.handleActionPath(requestPath, handler)) { // #to_action return;