Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @RequestMapping("/employee/edit")
  2. public ModelAndView editEmp(@RequestParam int emp_Id, @RequestParam boolean flag,
  3. @ModelAttribute Employee emp) {
  4.  
  5. emp = empService.getEmp(emp_Id);
  6.  
  7. List<String> cityList = new ArrayList<String>();
  8. cityList.add("Hyderabad");
  9. cityList.add("Secunderabad");
  10.  
  11. Map<String, Object> map = new HashMap<String, Object>();
  12. map.put("cityList", cityList);
  13. map.put("emp", emp);
  14.  
  15. return new ModelAndView("employee", "map", map);
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement