登录页面login.jsp
- <body>
- <%
- String[] userInfo={ "",""};
- Cookie[] cookie=request.getCookies();
- if(cookie!=null) {
- for(int i=0; i<cookie.length; i++) {
- if(cookie[i].getName().equals("loginInfo")) {
- userInfo = cookie[i].getValue().split("#");
- }
- }
- }
- %>
- <form action="servlet/Login" method="post">
- 账号:<input type="text" class