1、制作一个session:
HttpSession session = request.getSession();
session.setAttribute("kobe", kobe);
2、java文件中调用session:
HttpSession session = request.getSession();
session.getAttribute("kobe");
3、jsp里调用session
<%= request.getSession().getAttribute("kobe") %>