Map<String,String[]> map = request.getParameterMap();Set<String> keys = map.keySet(); 获取表单的namefor(String key:keys){ String[] values = request.getParameterValues(key); 获取数组型 值 因为不止单选 还有多选 干脆都用多选 for (String value:values) { System.out.println(value); }}
原文地址:https://www.cnblogs.com/classmethond/p/10217646.html
时间: 2024-10-04 16:04:19