index.jsp
<body>
<script type="text/javascript">
function refresh(){
loginForm.imgValidate.src = "validate.jsp?id=" + Math.random();
}
</script>
<h1>欢迎登录本系统</h1>
<form name="" action="/Prj13/servlets/ValidateServlet" method="post">
请输入验证码:<input type="text" name="code" size="10">
<img name="imgValidate" src="validate.jsp" onclick="refresh()"><BR>
<input type="submit" value="登录">
</form>
<hr>
<h1>文件上传</h1>
<form action="/Prj13/servlets/UploadServlet" method="post"
enctype="multipart/form-data">
你选择一个文件进行上传:
<input type="file" name="myFile">
<input type="submit" value="上传">
<