//获取request中的查询参数 public static MapgetRequestParamsByMap(HttpServletRequest request) { Map qmap=new HashMap (); Enumeration paraNames = request.getParameterNames(); while(paraNames.hasMoreElements()) { String paraName = paraNames.nextElement(); String paraValue = request.getParameter(paraName); if(!S.isNull(paraValue)) { if(paraName.indexOf("Time")!=-1||paraName.indexOf("Time")!=-1) { qmap.put(paraName,request.getParameter(paraName)); }else { qmap.put(paraName,"%"+request.getParameter(paraName)+"%"); } } } return qmap; }