<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<title>File Uploading Form</title>
|
</head>
|
|
<body>
|
<h3>File Upload:</h3>
|
Select a file to upload:
|
<br />
|
<form action="UploadServlet" method="post"
|
enctype="multipart/form-data">
|
<input type="file" name="file" size="50" /> <br /> <input
|
type="submit" value="Upload File" />
|
</form>
|
</body>
|
|
</html>
|