daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top