List of usage examples for org.springframework.web.servlet ModelAndView setViewName
public void setViewName(@Nullable String viewName)
From source file:com.poscoict.license.web.controller.CertificateController.java
@RequestMapping(value = { "certificateDownloadInfo" }, method = { RequestMethod.POST }) public ModelAndView getLicenseCertification(HttpSession session, String licenseFileName, HttpServletRequest req) throws Exception { System.out.println("~~~~~~~~~~~~~~~~~~licenseFileName: " + licenseFileName); ModelAndView mv = new ModelAndView(); mv.setViewName("certificateDownload/certificateView"); Map<String, Object> map = (Map<String, Object>) certificateService .getLicenseCertification((String) session.getAttribute("USER_NO"), licenseFileName, req); mv.addObject("ImgFileName", map.get("ImgFileName")); mv.addObject("PDFFileName", map.get("PDFFileName")); return mv;/*from w w w . j a v a2 s. c o m*/ }
From source file:org.myjerry.evenstar.web.blog.EmailPostController.java
public ModelAndView view(HttpServletRequest request, HttpServletResponse response) throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName(".email.post"); return mav;//w w w. ja v a 2s .co m }
From source file:org.openmrs.hl7.web.controller.Hl7InArchiveMigrationController.java
/** * Adds data to the modelAndView object to be rendered in hl7 archive migrate page * /*from w ww. j a va2s . co m*/ * @return the modelAndView */ @RequestMapping(value = "/admin/hl7/hl7InArchiveMigration.htm") public ModelAndView renderMigratePage() { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("/module/legacyui/admin/hl7/hl7InArchiveMigration"); modelAndView.addObject("time_out", HL7Constants.THREAD_SLEEP_PERIOD); modelAndView.addObject("hl7_archives_dir", HL7Util.getHl7ArchivesDirectory().getAbsolutePath()); modelAndView.addObject("migration_status", Hl7InArchivesMigrateThread.getTransferStatus().toString()); modelAndView.addObject("isMigrationRunning", Hl7InArchivesMigrateThread.isActive()); return modelAndView; }
From source file:com.kabiliravi.kaman.web.controller.MainController.java
@RequestMapping("ns/home") public ModelAndView main() { ModelAndView mov = new ModelAndView(); mov.setViewName("ns/home"); return mov;/*from w w w .j ava 2 s. c om*/ }
From source file:com.ut.healthelink.controller.solutionsController.java
/** * The '' request will display the solutions overview page. *//* w w w .j a v a 2s . co m*/ @RequestMapping(value = "", method = RequestMethod.GET) public ModelAndView solutionOverivew() throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName("/solutionOverivew"); mav.addObject("pageTitle", "Solutions"); return mav; }
From source file:com.ut.healthelink.controller.solutionsController.java
/** * The '/services' request will display the professional services page. *//* ww w. ja v a 2s .co m*/ @RequestMapping(value = "/services", method = RequestMethod.GET) public ModelAndView services() throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName("/services"); mav.addObject("pageTitle", "Professional Services"); return mav; }
From source file:com.ut.healthelink.controller.solutionsController.java
/** * The '/case-studies' request will display the case studies page. *///from w w w. j a va2 s. c o m @RequestMapping(value = "/case-studies", method = RequestMethod.GET) public ModelAndView healthedata() throws Exception { ModelAndView mav = new ModelAndView(); mav.setViewName("/casestudies"); mav.addObject("pageTitle", "Case Studies"); return mav; }
From source file:org.guanxi.sp.engine.service.saml2.EmbeddedDiscoveryService.java
/** * This is the handler for the initial /s2/eds page * * @param request ServletRequest//from w ww. ja v a 2s . c om * @param response ServletResponse * @throws java.io.IOException if an error occurs */ public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { DiscoveryFeedManager feedManager = (DiscoveryFeedManager) getServletContext() .getAttribute(Guanxi.CONTEXT_ATTR_ENGINE_DISCOVERY_FEED_MANAGER); ModelAndView mAndV = new ModelAndView(); mAndV.setViewName("/saml2/eds"); mAndV.getModel().put("jsonFeed", feedManager.toJSON()); return mAndV; }
From source file:com.br.uepb.controller.IndexController.java
@RequestMapping(value = "/index/index.html", method = RequestMethod.GET) public ModelAndView indexGet(HttpServletRequest request) { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("index/index"); return modelAndView; }
From source file:org.beast.project.template.web.HomeController.java
@RequestMapping(value = "/display", method = RequestMethod.GET) public ModelAndView display() { ModelAndView mv = new ModelAndView(); mv.setViewName("display"); List<Person> persons = personService.getAll(); mv.addObject("persons", persons); return mv;//from w w w .j a va 2 s. com }