HttpServletRequest request=ServletActionContext.getRequest();
request.getSession().setAttribute("id","value");
第二个action中
HttpServletRequest request=ServletActionContext.getRequest();
Object value= request.getSession().getAttribute("id");
要保证是同一个session