List of usage examples for org.springframework.web.servlet ModelAndView ModelAndView
public ModelAndView(View view, String modelName, Object modelObject)
From source file:infowall.web.spring.ControllerDsl.java
public static ModelAndView render(String viewName, String modelName, Object modelObject) { return new ModelAndView(viewName, modelName, modelObject); }
From source file:com.onclave.testbench.simpleControllerView.SimpleViewController.java
@RequestMapping(value = "/simpleView", method = RequestMethod.GET) public ModelAndView returnSimpleView() { System.out.println("========In returnSimpleView========"); return new ModelAndView("example/simpleView", "message", "The view is rendered from controller"); }
From source file:com.surfs.storage.web.controller.monitor.ClusterController.java
@RequestMapping(value = "/showCluster.do") public ModelAndView showCluster() { return new ModelAndView("monitor/cluster", "clusterList", clusterService.getClusterList()); }
From source file:eu.gyza.eap.controller.HelloController.java
@RequestMapping("/hello.htm") public ModelAndView helloWorld() { String message = "Hello World, Spring 3.0!"; return new ModelAndView("hello", "message", message); }
From source file:controllers.AgotController.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView getAgotBooks() { return new ModelAndView("agotBooks", "agotBooks", this.service.getAGOTBooks()); }
From source file:org.satic.web.controller.PruebaController.java
@RequestMapping(value = "/prueba.htm") public ModelAndView pruebaAction() { return new ModelAndView("prueba", "contenidos", facade.getAllContenido()); }
From source file:org.ucll.ip.spring_ip_project.controller.MapController.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView getMapInfo() { return new ModelAndView("mapinfo", "mapinfo", system.getMapInfo()); }
From source file:mvc.controller.IndexController.java
@RequestMapping("/adiciona") public ModelAndView wellcome() { String viewName = "welcome"; String var = "message"; String content = "WELCOME TO SPRING WORLD!"; return new ModelAndView(viewName, var, content); }
From source file:com.poscoict.license.web.controller.GenerateExcelController.java
@RequestMapping(value = "generateExcel", method = RequestMethod.POST) public ModelAndView makeExcelFileClientInfo() throws IOException { String filePath = getGenerateExcelService.makeExcelFileClientInfo(); File file = new File(filePath); return new ModelAndView("down", "downloadFile", file); }
From source file:org.ccntgrid.portal.action.TestAction.java
@RequestMapping("/index.htm") public ModelAndView test(HttpServletRequest request) throws Exception { LOG.info("test"); String str = "test string."; return new ModelAndView("index", "str", str); }