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:org.munie.envwater.controller.IndexController.java

@RequestMapping(value = "/index", method = RequestMethod.GET)
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse respond) {

    ModelAndView retval = new ModelAndView("redirect:/device/flow");
    return retval;
}

From source file:com.futuretech.controllers.LoginController.java

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

From source file:net.mamian.mySpringboot.controllers.HomeController.java

/**
 * 
 * 
 * @return 
 */
@RequestMapping("/")
public ModelAndView index() {
    return new ModelAndView("index");
}

From source file:com.seabee.snapdragon.controller.SecurityNavigation.java

@RequestMapping(value = "/error-login", method = RequestMethod.GET)
public ModelAndView invalidLogin() {
    ModelAndView modelAndView = new ModelAndView("login-form");
    modelAndView.addObject("error", true);
    return modelAndView;
}

From source file:com.mycompany.controller.ReportController.java

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

From source file:spring.IRVController.java

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

From source file:com.amkaawaken.controllers.SigninController.java

@RequestMapping(value = "/signup.htm", method = RequestMethod.GET)
public ModelAndView signup() {
    return new ModelAndView("com.amkaawaken.signup");
}

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

@RequestMapping(value = "logout")
public @ResponseBody ModelAndView logout() {
    return new ModelAndView("forward:/authority/logout");
}

From source file:web.mvc.controllers.HelloController.java

@RequestMapping("/hello")
public ModelAndView showHelloPage(@RequestParam(value = "user", required = false) String name) {
    ModelAndView mav = new ModelAndView("hello-page");
    mav.addObject("message", name == null ? "Hello guest!" : "Hello " + name + '!');
    return mav;//from  www  .  j  a  v a 2 s .  c om
}

From source file:com.amkaawaken.controllers.AboutController.java

@RequestMapping(value = "/contact_us.htm", method = RequestMethod.GET)
public ModelAndView contact_us() {
    return new ModelAndView("com.amkaawaken.contact");
}