List of usage examples for org.springframework.web.bind.annotation RequestMethod GET
RequestMethod GET
To view the source code for org.springframework.web.bind.annotation RequestMethod GET.
Click Source Link
From source file:org.fon.documentmanagementsystem.controllers.HomeController.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView home(Authentication authentication) { //return new ModelAndView("admin_home"); UserDto userDto = (UserDto) authentication.getPrincipal(); switch (userDto.getRola().getNazivRole()) { case "ADMIN": return new ModelAndView("admin_home"); case "USER": return new ModelAndView("user_home"); case "SUPERADMIN": return new ModelAndView("superadmin_home"); default:/*from w w w . j ava 2 s . c om*/ return new ModelAndView("login"); } }
From source file:com.leapfrog.inventorymanagementsystem.controller.admin.DashboardController.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView index() { ModelAndView mv = new ModelAndView("/admin/index"); mv.addObject("title", "Admin !"); return mv;//from ww w .j a v a 2 s . c o m }
From source file:com.controllers.LoginController.java
@RequestMapping(value = { "/login" }, method = RequestMethod.GET) public ModelAndView login() { ModelAndView modelAndView = new ModelAndView(); modelAndView.setViewName("login"); return modelAndView; }
From source file:com.swcguild.luckysevensmvc.LuckySevensController.java
@RequestMapping(value = "/displayLuckySevensForm", method = RequestMethod.GET) public String displayLuckySevensForm() { return "luckySevensForm"; }
From source file:controller.CreateController.java
@RequestMapping(value = "/dates", method = RequestMethod.GET) public String getDate() { return "date"; }
From source file:com.base.controller.StudentController.java
@RequestMapping(value = "/admin/student", method = RequestMethod.GET) public String renderStudent(ModelMap map) { map.addAttribute("studentPage", true); map.addAttribute("isLogged", true); map.addAttribute("student", new Students()); try {/*from w w w. j ava 2s . c o m*/ map.addAttribute("students", StudentDAO.getStudents()); } catch (Exception e) { e.printStackTrace(); } return "student"; }
From source file:com.epam.ipodromproject.controller.LoginController.java
@RequestMapping(method = RequestMethod.GET) public String goToLogin(@RequestParam(value = "error", required = false) String error) { return "login"; }
From source file:com.havoc.hotel.controller.HomeController.java
@RequestMapping(method = RequestMethod.GET) public String index() { return "home/index"; }
From source file:com.mohit.program.controller.disease.DisplayDisease.java
@RequestMapping(method = RequestMethod.GET) public String doGet(ModelMap map) { map.addAttribute("disease", diseaseDao.getAll()); return "disease/display"; }
From source file:com.swcguild.capstoneproject.controller.ContactController.java
@RequestMapping(value = "/contact", method = RequestMethod.GET) public String displayContactPage() { return ("contact"); }