jsp页面代码
<%@ page language="java" pageEncoding="UTF-8"%>
JQM动态加载 collapsible实例
返回
人才招聘
java 代码
后台的代码就是获取一个list 转换成json 输出
//获取招聘信息list
List list = jobInterface.queryJobMobileByCondition(pu);
String result ="";
Map mapUtils = new HashMap();
//转换成JSON 输出
if (list.size()>0) {
mapUtils.put("list",list);
JSONObject object = JSONObject.fromObject(mapUtils);
result = object.toString();
}
response.setContentType("application/xml;charset=UTF-8");
PrintWriter pw = response.getWriter();
pw.write(result);
pw.flush();
pw.close();