session传值
ServletContext servletContext = ServletActionContext.getServletContext();
//session value :username,password,ser_pri
servletContext.setAttribute("accont",loginfoBean.getUsername());
jsp 获取
<%=this.getServletConfig().getServletContext().getAttribute("username")>
request传值
HttpServletRequest request = ServletActionContext.getRequest();
request.setAttribute("info", "create");
jsp获取
request.getAttribute("info");