List of usage examples for org.springframework.web.servlet ModelAndView setViewName
public void setViewName(@Nullable String viewName)
From source file:me.bulat.jivr.webmin.web.root.AppRootController.java
@RequestMapping(value = { "/exist" }, method = { RequestMethod.GET }) public ModelAndView usernameExists() { ModelAndView model = new ModelAndView(); model.addObject("title", "Jivr Web Console Registration page"); model.addObject("message", "Registration unsuccess!"); model.setViewName("form/exist"); return model; }
From source file:net.oneandone.stool.overview.StageController.java
@RequestMapping(method = RequestMethod.GET, produces = MediaType.TEXT_HTML_VALUE) public ModelAndView stagesAsHtml(ModelAndView modelAndView) throws SAXException, NamingException, UserNotFound, IOException, EnumerationFailed { modelAndView.setViewName("stages"); modelAndView.addObject("stages", stages.load(session, users)); return modelAndView; }
From source file:bfkltd.formulations.controller.InciController.java
@RequestMapping(value = "/addInci", method = RequestMethod.GET) public ModelAndView addInciView() { ModelAndView modelAndView = new ModelAndView(); modelAndView.addObject("action", "addInciData"); modelAndView.setViewName("inci/addInci"); return modelAndView; }
From source file:com.ut.healthelink.controller.adminSysHL7Controller.java
/** * The '/details' GET request will display the HL7 detail form. *//*w w w. j a v a 2s .c om*/ @RequestMapping(value = "/details", method = RequestMethod.GET) public ModelAndView getHL7Form(@RequestParam int hl7Id) throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName("/administrator/sysadmin/hl7/details"); mainHL7Details hl7Details = sysAdminManager.getHL7Details(hl7Id); int HL7Id = 0; HL7Id = hl7Details.getId(); /* Get a list of HL7 Segments */ List<mainHL7Segments> HL7Segments = sysAdminManager.getHL7Segments(HL7Id); /* Get a list of HL7Elements */ if (!HL7Segments.isEmpty()) { for (mainHL7Segments segment : HL7Segments) { List<mainHL7Elements> HL7Elments = sysAdminManager.getHL7Elements(HL7Id, segment.getId()); if (!HL7Elments.isEmpty()) { segment.setHL7Elements(HL7Elments); } } } hl7Details.setHL7Segments(HL7Segments); mav.addObject("HL7Details", hl7Details); return mav; }
From source file:me.bulat.jivr.webmin.web.root.AppRootController.java
/** * Page with incorrect describe.//from w w w .j ava2 s . co m * @return page model. */ @RequestMapping(value = { "/incorrect" }, method = { RequestMethod.GET }) public ModelAndView incorrectInput() { ModelAndView model = new ModelAndView(); model.addObject("title", "Jivr Web Console Registration page"); model.addObject("message", "Registration unsuccess!"); model.setViewName("form/incorrect"); return model; }
From source file:com.fengduo.bee.web.controller.product.ItemController.java
/** * ?//from ww w .j a v a2 s. co m * * @return */ @RequestMapping(value = "/create", method = RequestMethod.GET) public ModelAndView create(ModelAndView mav) { mav.setViewName("item/add"); mav.addObject("postUrl", "/item/create"); return mav; }
From source file:Highcharts.ExportController.java
@ExceptionHandler(IOException.class) public ModelAndView handleIOException(Exception ex) { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("error"); modelAndView.addObject("message", ex.getMessage()); return modelAndView; }//w w w .j a v a 2 s . c om
From source file:Highcharts.ExportController.java
@ExceptionHandler(SVGConverterException.class) public ModelAndView handleSVGRasterizeException(Exception ex) { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("error"); modelAndView.addObject("message", "Something went wrong while converting."); return modelAndView; }/*w w w .j a va 2 s . com*/
From source file:Highcharts.ExportController.java
@ExceptionHandler(ServletException.class) public ModelAndView handleServletException(Exception ex) { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("error"); modelAndView.addObject("message", ex.getMessage()); return modelAndView; }/*w w w. j av a2 s . c o m*/
From source file:org.shareok.data.webserv.UserController.java
@RequestMapping("/login") public ModelAndView loginPage() { ModelAndView model = new ModelAndView(); model.setViewName("login"); return model; }