*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//创造JSON所需的Map(此处代码可使用StringBuffer拼接JSON字符串代替)
Map<Object,Object> pageInfo = new HashMap<Object,Object>();
RunTimeUser currentUser = RunTimeUser.getRunTimeUser(request);
if(null==currentUser) {
response.setContentType("html/txt");
response.setCharacterEncoding("utf-8");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache, must-revalidate");
response.setHeader("Pragma", "no-cache");
try {
response.getWriter().write("");
response.getWriter().flush();
response.getWriter().close();
} catch (IOException e) {
e.printStackTrace();
}
}
String hql = " from Orders o where o.user.id = "+currentUser.getId()+" and o.status!="+Orders.STATUS_CART;
String hidden = request.getParameter("hidden");
//得到当前页数
String page = request.getParameter("page");
//得到每页显示行数