Hello,
I try to login via jsf. I found this
http://ocpsoft.com/java/acegi-spring-security-jsf-login-page/ Tutorial.
it seems to be the best Way to solve the login problem. My problem is
tha nothing happens when i try to login. If i set the log4j level for
spring security to debug, i did not see any login process. The doLogin
method in the LoginBean is called but i think doesnt redirect to
/j_security_check. Here is the code from the doLogin Method:
public String doLogin() throws IOException, ServletException
{
ExternalContext context =
FacesContext.getCurrentInstance().getExternalContext();
RequestDispatcher dispatcher = ((ServletRequest)
context.getRequest())
.getRequestDispatcher("/j_security_check");
dispatcher.forward((ServletRequest) context.getRequest(),
(ServletResponse) context.getResponse());
FacesContext.getCurrentInstance().responseComplete();
log.debug("executed");
return null;
}
Has anybody solved the login problem via JSF?
cheers Reini
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net