1.HttpServletRequest转换成Map
public static Map<String,String> parseXML(HttpServletRequest request) throws Exception{ Map<String,String> map = new HashMap<String,String>(); Enumeration enu=request.getParameterNames(); while(enu.hasMoreElements()){ String paraName=(String)enu.nextElement(); map.put(paraName, request.getParameter(paraName)); } return map; }