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

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

Introduction

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

Prototype

RequestMethod POST

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

Click Source Link

Usage

From source file:se.etimo.etimocoin.ApiController.java

@ResponseBody
@RequestMapping(method = RequestMethod.POST)
synchronized ResultWrapper move(@RequestBody MoveCommandWrapper cmd) {

    return new ResultWrapper(GameGrid.getGrid().commandMove(cmd));

}

From source file:com.studevs.controllers.Home.java

@RequestMapping(value = "home", method = RequestMethod.POST)
public String doRequest1() {

    try {//w  w w .  ja v a2  s.c om

        return "home";
    } catch (Exception e) {

        return "index";
    }
}

From source file:com.caballero.springmvcmaven.controllers.LoginController.java

@RequestMapping(value = "/login", method = RequestMethod.POST)
public String login() {

    return "index";
}

From source file:self.musicporta.REST.UserController.java

@RequestMapping(value = "/user", method = RequestMethod.POST)
public Boolean CreateUser(String username, String password, String repeatedPassword, String email) {
    UserService service = new UserService();
    return service.CreateUser(username, password, repeatedPassword, email);
}

From source file:com.project.framework.controller.BodyController.java

@RequestMapping(value = "/body", method = { RequestMethod.GET, RequestMethod.POST })
public String setBody(ModelMap model) {
    return "framework/body";
}

From source file:com.project.framework.controller.HeaderController.java

@RequestMapping(value = "/header", method = { RequestMethod.GET, RequestMethod.POST })
public String setHeader(ModelMap model) {
    return "framework/header";
}

From source file:thoughtworks.controller.CalculatorController.java

@RequestMapping(value = "/calculate", method = RequestMethod.POST)
public String calculate(@ModelAttribute("SpringWeb") Calculator calculator, ModelMap model) {
    model.addAttribute("firstNumber", calculator.getFirstNumber());
    model.addAttribute("secondNumber", calculator.getSecondNumber());
    model.addAttribute("result", calculator.calculate());
    model.addAttribute("calculator", calculator);
    return "index";
}

From source file:com.surfs.storage.web.controller.storage.LogoutController.java

@RequestMapping(method = RequestMethod.POST, value = "/storage/logout.do")
public ModelAndView logoutStorage(HttpServletRequest request) {
    return logout(request);
}

From source file:com.poscoict.license.web.controller.GenerateExcelController.java

@RequestMapping(value = "generateExcel", method = RequestMethod.POST)
public ModelAndView makeExcelFileClientInfo() throws IOException {
    String filePath = getGenerateExcelService.makeExcelFileClientInfo();

    File file = new File(filePath);
    return new ModelAndView("down", "downloadFile", file);
}

From source file:controlador.AgregarPruebaControlador.java

@RequestMapping(value = "/formulario", method = RequestMethod.POST)
public String loginasd(ModelMap model, HttpServletRequest request) {
    String nombre = request.getParameter("nombre");
    String numero = request.getParameter("numero");
    model.addAttribute("nombre", nombre);
    model.addAttribute("numero", numero);
    return "pruebaNueva";
}