文件上传下载
This commit is contained in:
20
web/upload.jsp
Normal file
20
web/upload.jsp
Normal 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>
|
Reference in New Issue
Block a user