第一个jsp页面:session.setAttribute("Eno", t_id)。 第二个jsp页面:int En = (Integer) session.getAttribute("Eno"); 提示:这种方法只用JDK1.5以上的才支持。