(一)客户端获取Action中数据-----------------------在struts2中,设进session的话则应该变成这样了,因为session是一个map类型:Java代码publicStringfindAllUsers()throwsException{List<User>userList=userService.findAllUsers();session.put("userList",userList);//request.setAttribute("userList",userList);returnSUCCESS;} Read More