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:progetto.informatica.ControllerMain.java

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

From source file:ua.com.codefire.testhiber.web.IndexController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String getRoot() {
    return "redirect:/index";
}

From source file:com.healthcit.cacure.web.controller.LogoutController.java

@RequestMapping(value = "/logout", method = RequestMethod.GET)
public View processLogout(HttpServletRequest request) {

    HttpSession session = request.getSession();

    try {//from  w  w w.jav  a2  s  .  c o  m
        session.removeAttribute(Constants.CREDENTIALS);
        session.invalidate();
    } catch (Exception ex) {
        //log exception
        log.error("Error in LogoutAction", ex);
    }

    return new RedirectView(Constants.HOME_URI, true);
}

From source file:controller.CuentaController.java

@RequestMapping(value = "getAllacc", method = RequestMethod.GET)
public String getAll(Model m) {
    CuentaModel model = new CuentaModel();
    m.addAttribute("lst", model.getAll());
    return "datoscuenta";
}

From source file:edu.mum.waa.webstore.controller.CartController.java

@RequestMapping(value = "/{cartId}", method = RequestMethod.GET)
public String getCart(@PathVariable(value = "cartId") String cartId, Model model) {
    model.addAttribute("cartId", cartId);
    return "cart";
}

From source file:th.co.geniustree.dental.controller.AuthorityController.java

@RequestMapping(value = "/getauthority", method = RequestMethod.GET)
public Page<Authority> getAuthority(Pageable pageable) {
    return authorityRepo.findAll(pageable);
}

From source file:com.leapfrog.springhibernate.controller.DefaultController.java

@RequestMapping(method = RequestMethod.GET)
public String Dashboard() {
    return "dashboard";
}

From source file:za.co.dwarfsun.jcmanager.presentation.HomeController.java

@RequestMapping(value = "/y", method = RequestMethod.GET)
public String y(Model model) {
    model.addAttribute("value", "This is <b>Y</b>");
    return "index";
}

From source file:com.eyem.rest.PostFacadeRest.java

@RequestMapping(value = "/email/{email}", method = RequestMethod.GET)
public List<Post> buscarPostsUsuario(@PathVariable("emailUsuario") String email) {
    return postService.findAllPostByEmailUser(email);
}

From source file:com.mum.controller.LoginController.java

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