<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascrpit">
function changeImg(){
document.getElementById("img1").src = "/web03/CheckImgServler?time" + new Date().getTime();
}
</script>
</head>
<%
String msg = "";
if(request.getAttribute("msg") !=null){
msg = (String)request.getAttribute("msg");
}
%>
<body>
<h1>登录页</h1>
<from action="/web03/LoginServlet" method="post">
<h3><font color="red"><%= msg %></h3>
<table border="1" width="400">
<tr>
<td>用户名</td>
<ts><input type="text" name="username" value="${ cookie.remember.value} }"></ts>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td>验证码</td>
<td>
<input type="text" name="checkcode" size="6">
< img id="img1" src="/web03/CheckImgServelt">
<a href=" " onclick="changeImg">看不清,换一张</a >
</tr>
</table>
</body>
</html>