文件上传下载

This commit is contained in:
cyk
2023-07-06 18:07:44 +08:00
parent cd365131f4
commit ae4cd2004f
6 changed files with 383 additions and 1 deletions

20
web/upload.jsp Normal file
View File

@@ -0,0 +1,20 @@
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<title>文件上传</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<form action="${pageContext.request.contextPath}/UploadHandle" enctype="multipart/form-data" method="post">
上传用户:<input type="text" name="username"><br/>
上传文件1<input type="file" name="file1"><br/>
上传文件2<input type="file" name="file2"><br/>
<input type="submit" value="提交">
</form>
</body>
<body> <br>
<input id="btnCancel" class="btn" type="button" value="下载页" onclick="window.location='../FileUploadAndDownLoad/servlet/ListFileServlet'" />
</body>
</html>