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.com.projetotcc.controller.DesenvolvedorController.java

@RequestMapping("/desenvolvedores")
public ModelAndView desenvolvedores() {
    ModelAndView model = new ModelAndView("desenvolvedores");
    model.addObject("desenvolvedores", desenvolvedorDao.list());
    return model;
}

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

@RequestMapping("/web_info/grupo_info")
public ModelAndView grupo() {
    ModelAndView m = new ModelAndView("/web_info/grupo_info");
    return m;//from   w ww .  jav a 2 s  . com
}

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

@RequestMapping(value = "/system/subjects", method = RequestMethod.GET)
public ModelAndView getSubjects(Model model) {
    return new ModelAndView("test");
}

From source file:com.leapfrog.springhibernate.controller.MeetupController.java

@RequestMapping(value = "index", method = RequestMethod.GET)
public @ResponseBody ModelAndView index() {
    ModelAndView mv = new ModelAndView("meetup/index");
    mv.addObject("meetupList", meetupService.getAll());
    return mv;// www  .  j a  v  a 2 s  .  c o m
}

From source file:com.leapfrog.lfaeventmanager.admin.controller.EventListController.java

@RequestMapping(value = "index", method = RequestMethod.GET)
public ModelAndView index() {
    ModelAndView mv = new ModelAndView("eventlist/index");
    mv.addObject("eventLists", eventListService.getAll());
    return mv;// w w  w  .j av a  2 s  . c o m
}

From source file:org.osframework.demo.social.twitter.HomeController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public ModelAndView home() {
    ModelAndView mav = new ModelAndView("home");

    return mav;/*  w  w w  .  ja  va 2 s .  c o  m*/
}

From source file:psiprobe.controllers.jsp.DiscardCompiledJspController.java

@Override
protected ModelAndView handleContext(String contextName, Context context, HttpServletRequest request,
        HttpServletResponse response) throws Exception {

    getContainerWrapper().getTomcatContainer().discardWorkDir(context);
    return new ModelAndView(
            new RedirectView(request.getContextPath() + getViewName() + "?" + request.getQueryString()));
}

From source file:ustc.sse.controller.InputController.java

@RequestMapping("/selectFile.do")
public ModelAndView selectFile(HttpServletRequest request, HttpServletResponse response) {
    return new ModelAndView("inputOthers");
}

From source file:protocolo.controller.ConfigController.java

@RequestMapping(value = "/config")
ModelAndView config() {
    ModelAndView modelAndView = new ModelAndView("config");
    return modelAndView;
}

From source file:com.orchestra.portale.controller.DeletePoiController.java

@RequestMapping(value = "/deleteevent")
public ModelAndView deleteEvt() {
    ModelAndView model = new ModelAndView("deleteeventform");
    return model;
}