javax.servlet.http.HttpSession.setAttribute()でセッションを設定するサンプル
サンプルコード:
HttpSession session = ServletActionContext.getRequest().getSession();
OrderSessionDataBean orderSessionDataBean = new OrderSessionDataBean();
orderSessionDataBean.setBookId("xxx");
orderSessionDataBean.setAuthor("xxx");
orderSessionDataBean.setPubDate("xxx");
orderSessionDataBean.setPrice("xxx");
session.setAttribute("SESSION_KEY_ORDER", orderSessionDataBean);