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:com.freetest.test.controller.HomeAction.java
@RequestMapping(value = "/", method = { RequestMethod.GET }) public ModelAndView index() { ModelAndView mav = new ModelAndView("index"); mav.addObject("user", "hello"); return mav;//from w w w.j ava 2s .c o m }
From source file:com.teradata.controller.RatePlanController.java
@RequestMapping(value = "/list", method = RequestMethod.GET) public List<RatePlan> cariPlan(Pageable page) { return rpr.findAll(); }
From source file:WebControllers.WebControllerUsuarios.java
@RequestMapping(value = "registro", method = RequestMethod.GET) public ModelAndView viewRegistro(HttpServletRequest request) { ModelAndView result = new ModelAndView("paginasRestaurante/registro"); cargaContenidoComun(request, result); return result; }
From source file:com.anthony.forumspring.controller.bonjourController.java
@RequestMapping(method = RequestMethod.GET) public String afficherBonjour(final ModelMap pModel) { return "bonjour"; }
From source file:Controladores.ControladorWS.java
@RequestMapping(value = "get-autocomplete-funcionarios", method = RequestMethod.GET, headers = "Accept=*/*", produces = "text/html; charset=UTF-8") public @ResponseBody String getTags(@RequestParam String tagName) { String searchList = new Gson().toJson(FuncionarioDAO.getFuncionarios(tagName)); return searchList; }
From source file:gr.pskoufos.controler.IndexControler.java
@SuppressWarnings("SameReturnValue") @RequestMapping(value = { "/", "/2" }, method = RequestMethod.GET) @ResponseBody//from w w w .jav a 2s. c om public String showIndex() { //return "New message panos !!!!...."; return cPerson.GetName(); }
From source file:com.headlesslab.gestorrequerimientos.controller.AccesoController.java
@RequestMapping(method = RequestMethod.GET) public String redirect(@RequestParam("url") String url, Model m) { if (url.trim().equals("requerimientos")) { return "frmGestionarRequerimientos"; } else {/*from w ww .j ava2s . c o m*/ m.addAttribute("msj", "Url no autorizada"); return "error"; } }
From source file:com.hackathon.controller.EventController.java
@RequestMapping(value = "get/event/{eventId}", method = RequestMethod.GET) @ResponseBody//w w w . ja v a 2s.c o m public String getEvent(@PathVariable("eventId") int eventId) { Event event = new Event(); event.setCreatorId(1); event.setEventDate(new Date()); event.setEventDescription("This is a description"); event.setNotifyDate(new Date()); event.setPriority("High Priority"); Gson gson = new Gson(); return gson.toJson(event); }
From source file:com.test1.controller.UserController.java
@RequestMapping(value = "/home", method = RequestMethod.GET) public ModelAndView home(@ModelAttribute("userId") int userId) { ModelAndView mav = new ModelAndView("user"); try {/*from w ww.jav a 2 s .c o m*/ UserDAO userDao = new UserDAO(); String username = userDao.getUser(userId).getUsername(); LinkedList<UserBean> users = userDao.getUsers(userDao.getUser(username).getId()); mav.addObject("username", username); mav.addObject("users", users); mav.setViewName("user"); } catch (Exception ex) { } return mav; }
From source file:com.freetest.test.controller.UserAction.java
@RequestMapping(value = "/login", method = { RequestMethod.GET }) public ModelAndView login() { ModelAndView mav = new ModelAndView("user/user"); mav.addObject("user", "hello"); return mav;//from ww w . jav a2 s. c o m }