后台: HttpSession session = req.getSession(); session.setAttribute("product", pro); 页面: value="${product.productName}" 获取form表单数据: req.getParameter("username")