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.onclave.testbench.RESTful.TwoWayDataBinding.ServeJSONResponse.java
@RequestMapping(value = "/fakeJSON", method = RequestMethod.GET) public String getFakeJSONData() { String jsonData = "{\"id\":\"100\",\"name\":\"Sajib Acharya\"}"; return jsonData; }
From source file:controllers.ImpressionFormController.java
@RequestMapping(value = "/form", method = RequestMethod.GET) public String createForm(ModelMap model) throws ClassNotFoundException { model.addAttribute("impression", new Impression()); model.addAttribute("impressions", Impression.allImpressions()); return "form"; }
From source file:com.leapfrog.inventorymanagementsystem.controller.LoginController.java
@RequestMapping(method = RequestMethod.GET) public ModelAndView index() { ModelAndView mv = new ModelAndView("login"); mv.addObject("title", "Please Login"); return mv;//from w w w .j av a 2 s . c om }
From source file:com.swcguild.addressbookwebapp.controller.LoginController.java
@RequestMapping(method = RequestMethod.GET) public void showLoginForm() { }
From source file:com.dub.skoolie.web.controller.system.schedule.events.SystemEventsController.java
@RequestMapping(value = "/system/schedule/events", method = RequestMethod.GET) public ModelAndView getIndex(Model model) { return new ModelAndView("system/schedule/events/index"); }
From source file:com.leapfrog.springsecurity.controller.DefaultController.java
@RequestMapping(method = RequestMethod.GET) @ResponseBody public String index() { String sql = ""; return "Hello without login"; }
From source file:com.leapfrog.springsecurity.controller.admin.AdminController.java
@RequestMapping(method = RequestMethod.GET) @ResponseBody public String index() { return "Secured Page"; }
From source file:controller.demo.java
@RequestMapping(value = "/demo/{id}", method = RequestMethod.GET) public String index(ModelMap m, @PathVariable(value = "id") int id) { adminModel am = new adminModel(); m.put("admin", am.getRow(2)); m.put("id", id); m.put("test", 1); return "demo"; }
From source file:Controllers.LogoutController.java
@RequestMapping(method = RequestMethod.GET) public String logout(HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); if (session != null) { //session.removeAttribute("username"); session.invalidate();//from w ww .j a v a2 s. c o m } return "redirect:/index.htm"; }
From source file:com.controller.RandomController.java
@RequestMapping(value = "getRandom.htm", method = RequestMethod.GET) public @ResponseBody String getRandom() { Random rnd = new Random(); String result = "<br/>Response from controller " + rnd.nextFloat() * 100 + " time " + new Date().toString(); return result; }