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.gian.controller.DefaultController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String index(ModelMap map) {

    _log.info("I'm the default controller");
    map.addAttribute("messageFromController", "Welcome Spring from Netbeans!!");
    return "index";

}

From source file:com.sample.controllers.Landing.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String list(Model model, HttpServletRequest request) {
    System.out.println("From landing controler");
    //        return "Auth/Login";
    //        return "redirect:/Donors/";
    return "redirect:/Auth/";
}

From source file:pl.lodz.uni.math.controller.HelloController.java

@RequestMapping(method = RequestMethod.GET)
public String printWelcome(ModelMap model) {
    User user = new User("asd");
    model.addAttribute("message", user.getName());
    return "index";
}

From source file:com.tsg.addressbookmvc.HomeController.java

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

}

From source file:org.munie.envwater.controller.IndexController.java

@RequestMapping(value = "/index", method = RequestMethod.GET)
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse respond) {

    ModelAndView retval = new ModelAndView("redirect:/device/flow");
    return retval;
}

From source file:rv.spring.controllers.ControladorUsuario.java

@RequestMapping(value = "/usuarios", method = RequestMethod.GET, headers = { "Accept=Application/json" })
public @ResponseBody String getUsuarios() throws IOException {
    DAOUsuariosImpl dao = new DAOUsuariosImpl();
    return dao.buscar();
}

From source file:com.training.controller.IndexController.java

@RequestMapping(value = "/index", method = RequestMethod.GET)
public String home(Model model) {
    return "index";
}

From source file:com.pojur.controller.IndexController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String showIndex() {
    System.out.println();/* w ww .  ja va2 s .  com*/
    System.out.println();
    System.out.println("---> " + indexService.hello());
    System.out.println();
    System.out.println();
    return "default";
}

From source file:com.teamexception.reseravationmaven.controller.Ser.java

@RequestMapping(value = "add/{q}", method = RequestMethod.GET)
public void addServices(@PathVariable("q") String data) {
    String arr[] = data.split(",");
    String serviceName = arr[0];// first two elements servicename and description then sets of 3 elements
    String description = arr[1];// www.  j  ava  2  s.co m
    for (int i = 2; i < arr.length - 2;) {
        System.out.print(arr[i++] + " " + arr[i++] + " " + arr[i++]);//printing sets
        System.out.println();
    }

}

From source file:WebControllers.ControladorRaiz.java

@RequestMapping(value = "", method = RequestMethod.GET)
public ModelAndView index(HttpServletRequest request) {
    ModelAndView result = new ModelAndView("landing");
    /*    ModelAndView result = new ModelAndView("index");
        restaurante.setIdRestaurante(1);
        restaurante.setNombre("JFD");/*  w w w.  jav  a 2  s  .c  o  m*/
        result.addObject("holaMundo", "Hola mundo, si seor");*/
    return result;
}