HttpSession sess = request.getSession(); // if(sess != null) //sess.invalidate(); if (sess.getId() != null) { sess.setAttribute("uname", uname); sess.setAttribute("pwd", pwd); } String id = null; if (rs.next()) { id = rs.getString("id"); sess.setAttribute("id", id); RequestDispatcher dispatcher = request.getRequestDispatcher("/mypage1.jsp"); dispatcher.forward(request, response); request.setAttribute("queryResults", out); pw.print("<font size='6' color=blue>" + msg + "</font>"); } else { String LOGIN_PAGE = "login_ml.jsp"; response.sendRedirect(LOGIN_PAGE); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)