HttpServletRequest request
Map rsMap = getMapObjByRequestParas(request.getParameterMap());
public Map<String,String> getMapObjByRequestParas(Map requestParams){
Map<String,String> reqMap = new HashMap<String,String>();
for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext();) {
String name = (String) iter.next();
String[] values = (String[]) requestParams.get(name);
String valueStr = "";
for (int i = 0; i < values.length; i++) {
valueStr = (i == values.length - 1) ? valueStr + values[i]
: valueStr + values[i] + ",";
}
reqMap.put(name, URLDecoder.decode(valueStr));
}
return reqMap;
}