Example usage for org.springframework.web.bind.annotation RequestMethod GET

List of usage examples for org.springframework.web.bind.annotation RequestMethod GET

Introduction

In this page you can find the example usage for org.springframework.web.bind.annotation RequestMethod GET.

Prototype

RequestMethod GET

To view the source code for org.springframework.web.bind.annotation RequestMethod GET.

Click Source Link

Usage

From source file:com.gdev.web.flymeapp.ControladorAirplane.java

@RequestMapping(value="/plane/{model}/{plate}", method=RequestMethod.GET, headers={"Accept=text/html"})
public @ResponseBody  String salida(@PathVariable String model, @PathVariable integer plate){
    DAOAirplaneImpl d= new DAOAirplaneImpl();
    d.addPlane(new Airplane(model,plate));
    return "Avion creado correctamente";
}

From source file:com.ut.healthelink.controller.solutionsController.java

/**
 * The '' request will display the solutions overview page.
 *//*ww w .  j  a va 2  s.  co m*/
@RequestMapping(value = "", method = RequestMethod.GET)
public ModelAndView solutionOverivew() throws Exception {

    ModelAndView mav = new ModelAndView();
    mav.setViewName("/solutionOverivew");
    mav.addObject("pageTitle", "Solutions");
    return mav;
}

From source file:Controllers.MainController.java

/**
 *
 * @return//w w  w  . j av  a2s  .  co  m
 */
@RequestMapping(value = "/thuadat", method = RequestMethod.GET)
public ModelAndView GetListThuaDat() {
    ThuaDat objThuaDat = new ThuaDat();
    IThuaDatControl objThuaDatCtrl = new ThuaDatControl();
    ArrayList<ThuaDat> lstThuaDat = new ArrayList<ThuaDat>();
    return new ModelAndView("thuadat", "command", objThuaDat);

}

From source file:com.base.controller.CourseController.java

@RequestMapping(value = "/admin/course", method = RequestMethod.GET)
public String renderCourse(ModelMap map) {
    map.addAttribute("course", new Course());
    try {/*from   w w  w. j  a  v a  2  s .  co  m*/
        map.addAttribute("courses", CourseDAO.getCourses());
    } catch (Exception e) {
        e.printStackTrace();
    }
    return "course";
}

From source file:ThuaDatControllers.ThuaDatController.java

@RequestMapping(value = "/hello", method = RequestMethod.GET)
public String printHelloWorld(Model model) {
    model.addAttribute("message", "Xin cho cc bn");
    return "hello";
}

From source file:com.github.deerapple.spring.redis.HalfOrderController.java

@RequestMapping(value = "/in", method = RequestMethod.GET)
public String handleIn(@RequestParam("id") String id, @RequestParam("station") String station) {
    //        System.out.println(id + "........." + station);
    hod.GetIn(id, station);//from w w w  .j  a  v  a  2s.  c o m
    return id + "........." + station;
}

From source file:com.futuretech.controllers.LoginController.java

@RequestMapping(value = "/login", method = RequestMethod.GET)
public ModelAndView Login() {
    ModelAndView modelAndView = new ModelAndView("Login");
    return modelAndView;
}

From source file:com.starr.smartbuilds.controller.OtherController.java

@RequestMapping(value = "/contacts", method = { RequestMethod.GET })
public String getContacts(Model model, HttpServletRequest req) {
    HttpSession session = req.getSession();
    User user = (User) session.getAttribute("user");
    if (user == null) {
        model.addAttribute("authMsg", "<a href='./auth'>Log in</a>");
        model.addAttribute("exitReg", "<a href='./reg'>Register</a>");
    } else {// w w  w. j  a  v a  2s  .  c  o  m
        model.addAttribute("authMsg", "Hello," + user.getSummonerName() + "!");
        model.addAttribute("exitReg", "<a href=.'/auth/exit'>Exit</a>");
        model.addAttribute("createbuild", "<li><a href='./add' style='color: #deff00;'>Create Build</a></li>");
    }
    return "contacts";
}

From source file:com.seabee.snapdragon.controller.SecurityNavigation.java

@RequestMapping(value = "/error-login", method = RequestMethod.GET)
public ModelAndView invalidLogin() {
    ModelAndView modelAndView = new ModelAndView("login-form");
    modelAndView.addObject("error", true);
    return modelAndView;
}

From source file:com.swcguild.capstoneproject.controller.AboutController.java

@RequestMapping(value = "/about", method = RequestMethod.GET)
public String displayAboutPage() {
    return ("about");
}