0
그리고 저를 읽어 주셔서 감사 ... AuthenticationFailureHandler가 Spring 3 및 RichFaces에 로그인 문제를 표시하는 방법은 무엇입니까?
내가 최대 절전 모드, JSF2, RichFaces, 봄 3 MVC 패턴과 응용 프로그램 ... 내가, 로그인 폼 작업을 가지고 있지만 불가능 오기 '한 로그인 오류를 표시하려면 ... 왜?응용 문맥 :
<sec:form-login login-page="/pages/loginPage.xhtml"
login-processing-url="/j_spring_security_check"
authentication-success-handler-ref="myAuthSuccessHandler"
authentication-failure-handler-ref="myAuthErrorHandler"/>
UserAuthenticationErrorHandler :
public class UserAuthenticationErrorHandler implements AuthenticationFailureHandler {
...
@Override
public void onAuthenticationFailure(HttpServletRequest request,
HttpServletResponse response, AuthenticationException ae)
throws IOException, ServletException {
UsernamePasswordAuthenticationToken user = (UsernamePasswordAuthenticationToken)ae.getAuthentication();
request.setAttribute("error", "Can you Show me???");
response.sendRedirect("......");
}
...
}
그리고 마지막 login.xhtml 그 하지마 SHOW 오류:(
모든 아이디어 ??? 대단히 감사합니다!
안녕을 확인 것은 이것이,하지만 난 JSTL을하지 않은 경우 나는 내 프로젝트 만 JSF2 ... 에 JSTL 태그 라이브러리를하지 않은 태그 라이브러리, 어떻게 jsf2 탭 라이브러리 atributte "오류"로 쓸 수 있습니까? – ganzux
@ganzux : 저는 JSF에 익숙하지 않습니다. 단순히'$ {error}'라고 쓸 수는 있지만 HTML로 이스케이프 처리되지는 않습니다. – axtavt
감사합니다. 작동합니다! :-) – ganzux