Package javax.servlet.http

Examples of javax.servlet.http.HttpServletRequest.authenticate()


       
        String uname = request.getParameter("username");
        String pword = request.getParameter("password");
        try {
        request.login(uname, pword);
        request.authenticate(response);
        } catch(ServletException se) {
            request.setAttribute("authenticationMessage", "Login failed.");
            Logger.getLogger(actions.LoginAction.class.getName()).log(Level.INFO, "Login Failed for User ID: "+uname);
            return("fail");
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.