获取前台查询条件的公用方法
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;
    }

 

posted on 2016-05-31 16:09  james-roger  阅读(254)  评论(0编辑  收藏  举报