map.get("account_code") 得到的是数组
Map map = request.getParameterMap();
HashMap newMap = new HashMap();
for(Iterator iter = map.entrySet().iterator();iter.hasNext();){
Map.Entry element = (Map.Entry)iter.next();
Object strKey = element.getKey();
String[] value=(String[])element.getValue();
String valueStr="";
System.out.print(strKey.toString() +"=");
//没有 checkbox,用value[0]得到
// for(int i=0;i <value.length;i++){
// System.out.print(value[i]+",");
// valueStr += value[i] +",";
// }
valueStr += value[0] +",";
System.out.println();
newMap.put(strKey,valueStr);
}
for (Object key : newMap.keySet()) {
System.out.println(key + "<------------->" + newMap.get(key));
}