List of usage examples for org.springframework.web.servlet ModelAndView ModelAndView
public ModelAndView(View view)
From source file:com.amkaawaken.controllers.SponsorController.java
@RequestMapping(value = "/our_sponsorship_details.htm", method = RequestMethod.GET) public ModelAndView our_sponsorship_details() { return new ModelAndView("com.amkaawaken.our_sponsorship_details"); }
From source file:com.leapfrog.lfaeventmanager.admin.controller.BookingController.java
@RequestMapping(value = "index", method = RequestMethod.GET) public ModelAndView index() { ModelAndView mv = new ModelAndView("booking/index"); mv.addObject("bookings", bookingService.getAll()); return mv;//from ww w .ja v a 2 s .c om }
From source file:br.eti.fernandoribeiro.sample.spring.SampleController.java
@RequestMapping("/sendMessage") public ModelAndView sendMessage(@RequestParam("message") final String message) { final ModelAndView modelAndView = new ModelAndView("/WEB-INF/jsp/confirmation.jsp"); modelAndView.addObject("message", message); return modelAndView; }
From source file:com.orchestra.portale.controller.DeleteDeepeningPageController.java
@RequestMapping(value = "/deldpage", params = "name") public ModelAndView deletePoi(@RequestParam(value = "name") String name) { ModelAndView model = new ModelAndView("deleted"); try {// w w w. j a v a 2 s.c o m DeepeningPage poi = pm.findDeepeningPageByName(name); pm.deleteDeepeningPage(poi); return model; } catch (RuntimeException e) { ModelAndView model2 = new ModelAndView("errorViewPoi"); model2.addObject("err", "Errore impossibile trovare il poi: " + name); return model2; } }
From source file:de.asgarbayli.rashad.hbd.controllers.DashboardController.java
@RequestMapping(value = Navigation.DASHBOARD, method = RequestMethod.POST) public ModelAndView changeParameteres() { return new ModelAndView(Navigation.DASHBOARD); }
From source file:de.iew.raspimotion.controllers.IndexController.java
@RequestMapping(value = "/index.html", method = RequestMethod.GET) public ModelAndView indexAction() { ModelAndView mav = new ModelAndView("index"); mav.addObject("pageTitle", "Raspi Motion"); return mav;//from w ww. ja va2 s . c o m }
From source file:com.dub.skoolie.web.controller.system.people.faculty.SystemDistrictAdminController.java
@RequestMapping(value = "/system/people/faculty/districtadmin", method = RequestMethod.GET) public ModelAndView getDistrictAdmins(Model model) { return new ModelAndView(""); }
From source file:com.griddynamics.banshun.web.NestedController.java
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String message = "Hello Spring MVC"; ModelAndView modelAndView = new ModelAndView("testView"); modelAndView.addObject("message", message); return modelAndView; }
From source file:app.springapp.ConvertImageController.java
@RequestMapping(value = "/convert", method = RequestMethod.GET) public ModelAndView redirect() throws ServletException, IOException { return new ModelAndView("upload"); }