114115116117118119120121
* @param resp * @return */ public UserAccount getUser(HttpServletRequest req, HttpServletResponse resp) { HttpSession session = req.getSession(true); UserAccount account = (UserAccount) session.getAttribute("user"); return account; }