public static Map<String, Object> writeBackParam(HttpServletRequest request) { Enumeration<String> names = request.getParameterNames(); Map<String, Object> map = new HashMap<String, Object>(); while (names.hasMoreElements()) { String name = names.nextElement(); String value = request.getParameter(name); request.setAttribute(name, value); map.put(name, value); } return map; }