request-map

Map map = new HashMap();
//request-->map
Map requestParamsMap=request.getParameterMap();
Set key = requestParamsMap.keySet();
for (Object obj : key.toArray()) {
String parakey = obj.toString();
String paravalue = ((String[]) requestParamsMap.get(obj))[0]
.toString();
map.put(parakey, paravalue);
}

你可能感兴趣的:(request)