View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821903#3821903
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821903 Thank you very much, but the code doesn't work correctly. I can pass the authentication, but when I reach the second servlet to fetch the user principal: request.getUserPrincipal(), the return value is null. I wonder why this happens. servlet1: try { UsernamePasswordHandler handler = new UsernamePasswordHandler(username, password.toCharArray()); lctx = new LoginContext("danetworkflow", handler); lctx.login(); response.sendRedirect("servlet2"); } catch (LoginException exc) { out.println("Login failed: " + exc); return; } servlet2: request.getUserPrincipal()==null ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
