1、Map<String,Object> map = ActionContext.getContext().getSession();
2、HttpSession session = ServletActionContext.getRequest().getSession();
获取到session的两种方法
查询到一个集合
List<Category> cList = categoryService.findAll();
将list 存入到session中 到页面获取
ActionContext.getContext().getSession().put("cList", cList);