Thanks, i'm using request.getUserPrincipal().getName() and its works :).I have another question, i have defined a login form (login.jsp) and an error form (error.jsp). How can i get the LoginException in my error.jsp?Thanks