pageEncoding=”UTF-8″ import=”java.util.*”%>
-//W3C//DTD HTML 4.01 Transitional//EN”
Insert title here1.为什么使用SpringMVC的form标签
① 快速开发
② 表单回显
2.可以通过modelAttribute指定绑定的模型属性,
若没有指定该属性,则默认从request域中查找command的表单的bean
如果该属性也不存在,那么,则会发生错误。
–>
LastName :
Email :
Map map = new HashMap();
map.put(“1”, “Male”);
map.put(“0″,”Female”);
request.setAttribute(“genders”, map);
%>
Gender : ”/>
DeptName :
items=”${deptList }”
itemLabel=”departmentName”
itemValue=”id”>
BirthDay : –%>
Salary :