Guest User

Untitled

a guest
Jan 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. @RequestMapping(value="/user/edit/{id}", method = RequestMethod.GET)
  2. public String editForm(@PathVariable Integer id,Model model) {
  3. model.addAttribute("UserInfo", userService.getUserById(id));
  4. return "EditUser";
  5. }
  6.  
  7.  
  8. @RequestMapping(value="/moduleList", method = RequestMethod.GET)
  9. public String moduleList(Model model) {
  10. model.addAttribute("moduleCommand", new Module());
  11. model.addAttribute("moduleList", applicationService.getAllModules());
  12. return "modulelist";
  13. }
  14.  
  15. <div th:fragment="rightSectionBar">
  16. <div class="container body">
  17. <div class="title_section" style="margin-top: 50px;">
  18. <div class="col-md-2 heading">
  19. <h4>Home</h4>
  20. </div>
  21. </div>
  22. <div class="col-md-9 right_col">
  23. <div class="clearfix"></div>
  24. <!-- page content -->
  25. <span th:replace="fragments/contents::dashboard"></span>
  26.  
  27. //I want to see below content on calling "/user/edit/{id}" url
  28. <span th:replace="fragments/EditUser::editUsersBar"></span>
  29.  
  30. //I want to see below content on calling "/moduleList" url
  31. <span th:replace="fragments/modulelist::modulesListBar"></span>
  32. </div>
  33. </div>
  34. </div>
Add Comment
Please, Sign In to add comment