// 获取项目类型 public String queryXmtype() throws Exception { Map p = this.getParamsAsDmp(); List list = CommonUtil.queryXmtype(); String listtype = JSON.toJSONString(list, true); this.setAttributeFromDmp(p); this.getResponse().getWriter().write(listtype); return null; }