List of usage examples for org.springframework.web.servlet ModelAndView ModelAndView
public ModelAndView(View view, String modelName, Object modelObject)
From source file:uta.ak.usttmp.console.controller.HelloWorldController.java
@RequestMapping("/hello2/helloagain") public ModelAndView helloWorldAgain() { String message = "Hello World, Spring 3.0!"; return new ModelAndView("/hello2/helloagain", "message", message); }
From source file:com.github.bysrhq.todoapp.controller.UserController.java
@GetMapping("/{username}") public ModelAndView showUserPage(@PathVariable String username) { return new ModelAndView("userPage", "user", userRepository.findOne(username)); }
From source file:org.jasig.cas.web.OpenIdProviderController.java
protected ModelAndView handleRequestInternal(final HttpServletRequest request, final HttpServletResponse response) throws Exception { return new ModelAndView("openIdProviderView", "openid_server", this.loginUrl); }
From source file:Controllers.MainController.java
/** * * @return// ww w . j a v a 2s . c o m */ @RequestMapping(value = "/thuadat", method = RequestMethod.GET) public ModelAndView GetListThuaDat() { ThuaDat objThuaDat = new ThuaDat(); IThuaDatControl objThuaDatCtrl = new ThuaDatControl(); ArrayList<ThuaDat> lstThuaDat = new ArrayList<ThuaDat>(); return new ModelAndView("thuadat", "command", objThuaDat); }
From source file:eventmanager.controller.LoginController.java
@RequestMapping(value = "/loginForm") public ModelAndView loginForm() { ModelAndView modelAndView = new ModelAndView("login", "login", new Login()); return modelAndView; }
From source file:controller.findAppointment.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView getAllAppointment() { return new ModelAndView("findAppointment", "appointments", service.getAllAppointments()); }
From source file:jose.antonio.springexample.webproyect.CounterRequestController.java
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { a++;//from w ww . ja va 2 s . c o m return new ModelAndView("counterRequestController", "myCounterRequest", a); }
From source file:cn.net.withub.demo.bootsec.hello.controller.AdminController.java
@RequestMapping("hello") public ModelAndView hello() { Iterable<Userinfo> users = userinfoRepository.findAll(); return new ModelAndView("admin/hello", "users", users).addObject("beans", ac.getBeanDefinitionNames()) .addObject("courtCol", "??").addObject("usernameCol", "??") .addObject("pwdCol", "?"); }
From source file:jose.antonio.springexample.webproyect.CounterController.java
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { //throw new UnsupportedOperationException("Not yet implemented"); return new ModelAndView("counterController", "myCounter", myCounter.getCounter()); }
From source file:com.Accenture.Learnercontroller.java
@RequestMapping("/hello") public ModelAndView helloWorld() { String message = "HELLO SPRING NSIZWA "; return new ModelAndView("hello", "message", message); }