forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupimg.jsp
More file actions
42 lines (37 loc) · 1.3 KB
/
upimg.jsp
File metadata and controls
42 lines (37 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="electric.electricUtils.ParamUtils"%>
<%
String formName=ParamUtils.getEscapeHTMLParameter(request,"formname","");
String controlName=ParamUtils.getEscapeHTMLParameter(request,"controlname","");
String imageHandle=ParamUtils.getEscapeHTMLParameter(request,"imagename","");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet">
<title>上传图片</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="161">
<tr>
<td height="33" bgcolor="#eeeeee" style="padding:10px; "> 图片上传工具
</td>
</tr>
<tr>
<td height="128" style="padding:10px; ">
<form method="POST" action="upimg_upload.jsp" ENCTYPE="multipart/form-data">
选择要上传的文件:<br>
<input name="UPIMG" type="file" size="40">
<br>
<br>
<input type="hidden" name="formname" value="<%=formName%>">
<input type="hidden" name="controlname" value="<%=controlName%>">
<input type="hidden" name="imagename" value="<%=imageHandle%>">
<input name="B1" type="submit" class="btn_grey" value="开始上传">
<input name="B2" type="button" class="btn_grey" value="取消返回">
</form> </td>
</tr>
</table>
</body>
</html>