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:br.edu.ifpb.utils.JsonView.java

public static ModelAndView returnJsonFromMap(Map<String, String> modelMap) {

    MappingJackson2JsonView jsonConverter = new MappingJackson2JsonView();

    ModelAndView mav = new ModelAndView(jsonConverter);
    mav.addAllObjects(modelMap);// w  ww.  j a  v  a  2s  .c o  m

    return mav;
}

From source file:eventmanager.controller.IndexController.java

@RequestMapping(value = "/")
public ModelAndView index() {
    return new ModelAndView("forward:/User/loginForm");
}

From source file:com.museum_web.controller.HomeController.java

@RequestMapping("home")
public ModelAndView index() {
    ModelAndView mv = new ModelAndView("home/index");
    return mv;
}

From source file:com.opencnc.controllers.CamController.java

@RequestMapping("cam/abrir")
public ModelAndView abrir() {
    ModelAndView m = new ModelAndView("/cam/abrir");

    return m;
}

From source file:cn.net.withub.demo.bootsec.hello.controller.TestController.java

@RequestMapping("test")
public ModelAndView test() {
    return new ModelAndView("test");
}

From source file:br.sp.mandala.controller.IndexController.java

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

From source file:com.opencnc.controllers.ErrorController.java

@RequestMapping("/error/abrir_error")
public ModelAndView error() {
    ModelAndView m = new ModelAndView("/error/abrir_error");
    return m;
}

From source file:com.opencnc.controllers.InicioController.java

@RequestMapping("/inicio/acercade")
public ModelAndView acercade() {
    ModelAndView m = new ModelAndView("/inicio/acercade");
    return m;
}

From source file:br.com.joaops.awc.controller.ModeloController.java

@RequestMapping
public ModelAndView index() {
    ModelAndView mav = new ModelAndView("/modelo/index");
    return mav;
}

From source file:br.com.joaops.awc.controller.HomeController.java

@RequestMapping
public ModelAndView index() {
    ModelAndView mav = new ModelAndView("/home/index");
    return mav;
}