@WebServlet({ "/SimpleLoginServlet", "/simple/login" })
public class SimpleLoginServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
String value = "";
String check="checked='checked'";
Cookie[] cookies = request.getCookies();
if(cookies!=null ){
for (int i = 0;i < cookies.length; i++) {
if ("username".equals(cookies.getName())) {
value = cookies.getValue();
System.out.println(value);
}
}
value = "value='"+value+"'";
}
@WebServlet({ "/LoginSuccessServlet", "/simple/login/success" })
public class LoginSuccessServlet extends HttpServlet {
private static final long serialVersionUID = 1L;