List of usage examples for org.springframework.web.servlet ModelAndView ModelAndView
public ModelAndView(View view)
From source file:edu.uoc.bo.impl.UserBoImpl.java
@RequestMapping(method = RequestMethod.GET) @Override/*from w w w.ja va 2 s . com*/ public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) { LTIEnvironment lti = new LTIEnvironment(); ModelAndView model = new ModelAndView("player"); model.addObject("user", "Diego"); return model; }
From source file:by.bsuir.finance.controllers.SalaryController.java
@RequestMapping(value = "/view") public ModelAndView view() { ModelAndView model = new ModelAndView("salary/view"); Authentication auth = SecurityContextHolder.getContext().getAuthentication(); String name = auth.getName(); //get logged in username List<Salary> salarys = salaryService.findByUsername(name); model.addObject("salaries", salarys); return model; }
From source file:org.fon.documentmanagementsystem.controllers.PodsistemController.java
@RequestMapping(path = "/overview", method = RequestMethod.GET) public ModelAndView home() { ModelAndView mv = new ModelAndView("subsystem_overview"); List<Podsistem> sviPodsistemi; sviPodsistemi = podsistemService.findAll(); mv.addObject("subsystems", sviPodsistemi); return mv;// www . j a v a 2s. c om }
From source file:org.zhangmz.pickles.controller.IndexController.java
@RequestMapping(value = "index", method = RequestMethod.GET) public ModelAndView index() { ModelAndView result = new ModelAndView("index"); return result; }
From source file:newcontroller.handler.impl.ModelAndViewHandlerBridge.java
public ModelAndViewHandlerBridge(View view) { this.modelAndView = new ModelAndView(view); }
From source file:shiver.me.timbers.security.web.controller.HomeController.java
@RequestMapping(method = GET) public ModelAndView display(User user) { return new ModelAndView("home").addObject("username", user.getUsername()); }
From source file:net.indialend.attendance.controller.BranchController.java
@RequestMapping("/list") public ModelAndView branchList(@RequestParam(defaultValue = "0", required = false) int offset) { ModelAndView view = new ModelAndView("branch/branchList"); view.addObject("branchList", branchService.getBranch(offset, 10)); return view;//from w w w . j a va 2s . com }
From source file:com.opencart.controller.MainController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public ModelAndView showIndex() { ModelAndView mv = new ModelAndView("front/index"); mv.addObject("categories", categoryService.list()); mv.addObject("subcategories", subcategoryService.list()); return mv;/*from w w w . j a v a 2s .c o m*/ }
From source file:fr.ippon.tatami.web.controller.HomeController.java
@RequestMapping(value = "/") public ModelAndView home(@RequestParam(required = false) String tag, @RequestParam(required = false) String search) { ModelAndView mv = new ModelAndView("home"); User currentUser = authenticationService.getCurrentUser(); mv.addObject("user", currentUser); mv.addObject("authenticatedUsername", currentUser.getUsername()); mv.addObject("tag", tag); mv.addObject("search", search); return mv;/*from w ww . j a va 2s . c om*/ }
From source file:com.sishuok.chapter3.web.controller.ExceptionController.java
@ExceptionHandler public ModelAndView exceptionHandler(RuntimeException e) { ModelAndView mv = new ModelAndView("exception"); mv.addObject("exception", e); return mv;// w w w. ja va 2 s .com }