值已经传到后台
Nutz: Upload File info: FilePath=[null],fieldName=[userName]
Nutz: Found a param, name=[userName] value=[test123]
Nutz: Upload File info: FilePath=[null],fieldName=[realName]
Nutz: Found a param, name=[realName] value=[admin]
Nutz: Upload File info: FilePath=[null],fieldName=[password]
Nutz: Found a param, name=[password] value=[1234]
Nutz: Upload File info: FilePath=[null],fieldName=[passwordValidate]
Nutz: Found a param, name=[passwordValidate] value=[1234]
Nutz: Upload File info: FilePath=[null],fieldName=[role]
Nutz: Found a param, name=[role] value=[1]
Nutz: Upload File info: FilePath=[null],fieldName=[select]
Nutz: Found a param, name=[select] value=[a]
但是取值的时候却取不到
Map<String,String[]> param = request.getParameterMap();
String roleMap = param.get("role")[0];
System.out.println(">>>>>>>"+roleMap);
String role = request.getParameter("role");
System.out.println("role:"+role);
上面两种方法都是null。