<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"><title>Insert title here</title></head><body><formname="serForm"action="/SpringMVC006/fileUpload"method="post"enctype="multipart/form-data"><h1>采用流的方式上传文件</h1><inputtype="file"name="file"><inputtype="submit"value="upload"/></form><formname="Form2"action="/SpringMVC006/fileUpload2"method="post"enctype="multipart/form-data"><h1>采用multipart提供的file.transfer方法上传文件</h1><inputtype="file"name="file"><inputtype="submit"value="upload"/></form><formname="Form2"action="/SpringMVC006/springUpload"method="post"enctype="multipart/form-data"><h1>使用spring mvc提供的类的方法上传文件</h1><inputtype="file"name="file"><inputtype="submit"value="upload"/></form></body></html>