<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<body>
<div id="error">
<s:fielderror />
</div>
<div id="login">
<form action="sys/login" method="post">
<li><span>用户名</span><br /><input type="text" name="user.username" value="${user.username }"></li>
<li>
<label>密码</label><br />
<input type="password" name="user.password" value="${user.password }">
</li>
<li>
<label>验证码</label><br />
<img id="imageCode" src="util/util_validCodeImage" alt=""><br />
<script type="text/javascript">
function changeValidCode(){
var imgCode=document.getElementById("imageCode");
imgCode.src="util/util_validCodeImage?time="+new Date();
return false;
}
</script>
<a οnclick="return changeValidCode()" href="#">看不清换一张!</a><br />
<input type="text" name="validCode">
</li>
<li>
<input type="submit" value="登录">
</li>
</form>
</div>
</body>
</html>