action 1: private Map session; session.put("projectname_session", request1.getParameter("projectname")); action 2: private HttpSession pnSession =ServletActionContext.getRequest().getSession(); String pn = (String)pnSession.getAttribute("projectname_session");
转载于:https://www.cnblogs.com/wujixing/p/5276333.html