Original address: http://blog.csdn.net/chenchunlin526/article/details/70945877
I have only extracted some of the methods to upload pictures as follows:
File upload jsp page upload.jsp, upload page and picture echo page. Case one: The Name property of the input label is all the same
<%@ page language= "java" contenttype= "Text/html; charset=utf-8" pageencoding= "UTF-8"%> <%@ taglib prefix= "SEC" uri= "http://www.springframework.org/" Security/tags "%> <%@ taglib prefix= ' fmt ' uri=" http://java.sun.com/jsp/jstl/fmt " %> <! doctype html>
Situation two "multiple file Upload": input label name attribute values are different, File upload JSP page upload.jsp
<%@ page language= "java" contenttype= "Text/html; charset=utf-8" pageencoding= "UTF-8"%> <%@ taglib prefix= "SEC" uri= "http://www.springframework.org/" Security/tags "%> <%@ taglib prefix= ' fmt ' uri=" http://java.sun.com/jsp/jstl/fmt " %> <! doctype html>