Exemplo n.º 1
0
  public String all() {

    List<User> list = userService.getAll();

    HttpServletRequest request = ServletActionContext.getRequest();
    request.setAttribute("all", list);
    return "success";
  }
Exemplo n.º 2
0
  public String one() {

    System.out.println(id);
    User user = userService.getOne(id);

    HttpServletRequest request = ServletActionContext.getRequest();
    request.setAttribute("one", user);
    return "success";
  }