Example usage for org.springframework.web.servlet ModelAndView ModelAndView

List of usage examples for org.springframework.web.servlet ModelAndView ModelAndView

Introduction

In this page you can find the example usage for org.springframework.web.servlet ModelAndView ModelAndView.

Prototype

public ModelAndView(View view) 

Source Link

Document

Convenient constructor when there is no model data to expose.

Usage

From source file:com.dub.skoolie.web.controller.system.courses.SystemCourseController.java

@RequestMapping(value = "/system/courses", method = RequestMethod.GET)
public ModelAndView getCourses() {
    return new ModelAndView("test");
}

From source file:com.test1.controller.LoginController.java

@RequestMapping(value = "/login")
public ModelAndView login() {
    return new ModelAndView("login");
}

From source file:edu.uoc.common.controller.NavigationController.java

@RequestMapping(value = { "/", "index" }, method = RequestMethod.GET)
public ModelAndView homePage() {
    return new ModelAndView("index");
}

From source file:com.intel.cosbench.driver.web.WorkersPageController.java

private static ModelAndView createResult(MissionInfo info) {
    ModelAndView result = new ModelAndView("workers");
    result.addObject("info", info);
    result.addObject("isStopped", isStopped(info.getState()));
    result.addObject("isRunning", isRunning(info.getState()));
    return result;
}

From source file:my.ctr.MainController.java

@RequestMapping("test.do")
ModelAndView test() {//from   w w  w.ja v  a2s . c  o  m
    ModelAndView mv = new ModelAndView("testview");
    mv.addObject("towns", gameService);
    return mv;
}

From source file:com.exod.lipo.controller.HomeController.java

@RequestMapping(RouteConstants.HOME_ROUTE)
public ModelAndView homeController() {
    return new ModelAndView(JSPConstants.HOME_JSP);

}

From source file:quanlyhocvu.api.web.controller.teacher.TeacherController.java

@RequestMapping(value = "home")
public @ResponseBody ModelAndView home() {
    return new ModelAndView("teacher/home");
}

From source file:controladores.DatosUsuarioControlador.java

@Override
public ModelAndView handleRequest(HttpServletRequest hsr, HttpServletResponse hsr1) throws Exception {
    ModelAndView mv = new ModelAndView("DatosUsuario");
    String mensaje = "Datos de Usuario de la VISTA:";
    Usuario usu = new Usuario();
    usu.setNombre("Benito");
    usu.setApellidos("Floro");
    usu.setEdad(24);//from   w w  w.j a  va 2  s.c o  m
    mv.addObject("mensaje", mensaje);
    mv.addObject("usuario", usu);
    return mv;
}

From source file:com.wury.app.controller.AuthorController.java

@RequestMapping(value = "/my-posts", method = RequestMethod.GET)
public ModelAndView myPost() {
    ModelAndView mav = new ModelAndView("author/my_posts");
    return mav;//from  ww  w . j a  v a  2 s. c o m
}

From source file:escambovirtual.controller.BuscaController.java

@RequestMapping(value = "/web/buscar", method = RequestMethod.GET)
public ModelAndView getBuscar(String item) throws Exception {
    ModelAndView mv = new ModelAndView("/usuario/busca/buscaItem");
    mv.addObject("item", item);
    return mv;/* w  ww.jav a2 s.  c  o  m*/
}