@Override protected boolean forwardToErrorPageInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException { if (loginConfig == null) return false; LoginConfig config = (LoginConfig)loginConfig; if (config.getErrorPage() == null) return false; // had to do this to get around compiler/IDE issues :( try { Method method = null; /* for (Method m : getClass().getDeclaredMethods()) { if (m.getName().equals("forwardToErrorPage")) { method = m; break; } } */ method = FormAuthenticator.class.getDeclaredMethod("forwardToErrorPage", Request.class, HttpServletResponse.class, LoginConfig.class); method.setAccessible(true); method.invoke(this, request, response, config); } catch (Exception e) { throw new RuntimeException(e); } return true; }
@Override protected boolean forwardToErrorPageInternal(Request request, HttpServletResponse response, Object loginConfig) throws IOException { if (loginConfig == null) return false; LoginConfig config = (LoginConfig)loginConfig; if (config.getErrorPage() == null) return false; // had to do this to get around compiler/IDE issues :( try { Method method = null; /* for (Method m : getClass().getDeclaredMethods()) { if (m.getName().equals("forwardToErrorPage")) { method = m; break; } } */ method = FormAuthenticator.class.getDeclaredMethod("forwardToErrorPage", Request.class, HttpServletResponse.class, LoginConfig.class); method.setAccessible(true); method.invoke(this, request, response, config); } catch (Exception e) { throw new RuntimeException(e); } return true; }
throws IOException { String errorPage = config.getErrorPage(); if (errorPage == null || errorPage.length() == 0) { String msg = sm.getString("formAuthenticator.noErrorPage", (config.getErrorPage()); try { if (context.fireRequestInitEvent(request)) {
throws IOException { String errorPage = config.getErrorPage(); if (errorPage == null || errorPage.length() == 0) { String msg = sm.getString("formAuthenticator.noErrorPage", context.getServletContext().getRequestDispatcher(config.getErrorPage()); try { if (context.fireRequestInitEvent(request.getRequest())) {
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
throws IOException { String errorPage = config.getErrorPage(); if (errorPage == null || errorPage.length() == 0) { String msg = sm.getString("formAuthenticator.noErrorPage", context.getServletContext().getRequestDispatcher(config.getErrorPage()); try { if (context.fireRequestInitEvent(request.getRequest())) {
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
this.redirectTo(request, response, request.getServletPath()); } else { this.redirectTo(request, response, loginConfig.getErrorPage());
String errorPage = config.getErrorPage(); if ((errorPage != null) && !errorPage.startsWith("/")) { if (isServlet22()) {
String errorPage = config.getErrorPage(); if ((errorPage != null) && !errorPage.startsWith("/")) { if (isServlet22()) {
String errorPage = config.getErrorPage(); if ((errorPage != null) && !errorPage.startsWith("/")) { if (isServlet22()) {
appendElement(sb,INDENT4, "realm-name", loginConfig.getRealmName()); if (loginConfig.getErrorPage() != null || loginConfig.getLoginPage() != null) { sb.append(" <form-login-config>\n"); loginConfig.getLoginPage()); appendElement(sb, INDENT6, "form-error-page", loginConfig.getErrorPage()); sb.append(" </form-login-config>\n");
appendElement(sb,INDENT4, "realm-name", loginConfig.getRealmName()); if (loginConfig.getErrorPage() != null || loginConfig.getLoginPage() != null) { sb.append(" <form-login-config>\n"); loginConfig.getLoginPage()); appendElement(sb, INDENT6, "form-error-page", loginConfig.getErrorPage()); sb.append(" </form-login-config>\n");
appendElement(sb,INDENT4, "realm-name", loginConfig.getRealmName()); if (loginConfig.getErrorPage() != null || loginConfig.getLoginPage() != null) { sb.append(" <form-login-config>\n"); loginConfig.getLoginPage()); appendElement(sb, INDENT6, "form-error-page", loginConfig.getErrorPage()); sb.append(" </form-login-config>\n");