List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:org.obp.web.DefaultsController.java
@RequestMapping("/simple/defaults") public String manifest(ModelMap model) { model.addAttribute("readouts", defaultDataInstrument.getReadouts()); return "simple/defaults"; }
From source file:com.base.controller.StudentController.java
@RequestMapping(value = "/admin/student", method = RequestMethod.GET) public String renderStudent(ModelMap map) { map.addAttribute("studentPage", true); map.addAttribute("isLogged", true); map.addAttribute("student", new Students()); try {//from w w w . j a v a2s .com map.addAttribute("students", StudentDAO.getStudents()); } catch (Exception e) { e.printStackTrace(); } return "student"; }
From source file:org.openmrs.module.barebones.web.controller.BarebonesModuleManageController.java
@RequestMapping(value = "/module/barebones/barebonesPatientSelector", method = RequestMethod.GET) public void vitalsPatientSelector(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:org.openmrs.module.barebones.web.controller.BarebonesModuleManageController.java
@RequestMapping(value = "/module/barebones/portlets/barebonesPortlet", method = RequestMethod.GET) public void barebonesPortletController(ModelMap model) { model.addAttribute("user", Context.getAuthenticatedUser()); }
From source file:springku.HelloController.java
@RequestMapping(value = "/tes") public String tes(ModelMap map) { map.addAttribute("salam", new Hallo()); return "form"; }
From source file:com.havoc.hotel.controller.RoomController.java
@RequestMapping(value = "/{id}", method = RequestMethod.GET) public @ResponseBody ModelMap saveRoom(@PathVariable("id") int id) throws SQLException { ModelMap map = new ModelMap(); map.addAttribute("roomById", roomDAO.getById(id)); return map;/* w w w.j a v a 2 s . c om*/ }
From source file:org.obp.web.LoginController.java
@RequestMapping("/loginFailed") public String loginFailed(ModelMap model) { model.addAttribute("failed", true); return "login"; }
From source file:com.miko.demo.birt.controller.MainController.java
@RequestMapping(method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute("message", "Welcome to the BIRT Example App (spring, neo4j)"); model.addAttribute("cars", fakeCarService.getAllCars()); return "hello"; }
From source file:com.rplt.studioMusik.controller.HomeController.java
@RequestMapping(value = "/member") public String memberArea(ModelMap model) { model.addAttribute("message", request.getParameter("message")); return "halaman-signin-member"; }
From source file:org.obp.web.LoginController.java
@RequestMapping("/logoff") public String logout(ModelMap model) { model.addAttribute("loggedOut", true); logService.logUserLoggedOut(SecurityContextHolder.getContext().getAuthentication().getName()); return "login"; }