use of com.zyf.dao.TempDao in project HeartWatchdogJsp by Viczyf.
the class TempServlet method tendTemp.
public void tendTemp(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
TempDao tempdao = new TempDao();
HttpSession session = request.getSession();
// 获取用户对象
User user = (User) session.getAttribute("user");
int uid = user.getUid();
List tempList = tempdao.queryTemp(uid);
List tempMaxList = tempdao.queryMaxTemp(uid);
request.setAttribute("tempList", tempList);
request.setAttribute("tempMaxList", tempMaxList);
RequestDispatcher rd = request.getRequestDispatcher("temptend.jsp");
rd.forward(request, response);
}
Aggregations