Top "Request-mapping" questions

Issues regarding usage of Spring MVC @RequestMapping methods

Spring 3 MVC accessing HttpRequest from controller

I would like to handle request and session attributes myself rather then leave it to spring @SessionAttributes, for login of …

spring-mvc httprequest httpsession request-mapping
Spring 3 RequestMapping: Get path value

Is there a way to get the complete path value after the requestMapping @PathVariable values have been parsed? That is: /{…

spring spring-mvc request-mapping
Combine GET and POST request methods in Spring

I have a resource that supports both GET and POST requests. Here a sample code for a sample resource: @RequestMapping(…

spring spring-mvc request-mapping httpverbs
Spring mvc Ambiguous mapping found. Cannot map controller bean method

I am trying to build an app which can list some values from the database and modify, add, delete if …

java spring maven mv request-mapping
Spring MVC referencing params variable from RequestMapping

I have the method below: @RequestMapping(value = "/path/to/{iconId}", params="size={iconSize}", method = RequestMethod.GET) public void webletIconData(@PathVariable …

java spring spring-mvc servlets request-mapping
Understanding How Spring MVC's @RequestMapping POST Works

I have a simple Controller that looks like this:- @Controller @RequestMapping(value = "/groups") public class GroupsController { // mapping #1 @RequestMapping(method = …

java spring spring-mvc request-mapping
Handling ambiguous handler methods mapped in REST application with Spring

I tried to use some code as below: @RequestMapping(value = "/{id}", method = RequestMethod.GET) public Brand getBrand(@PathVariable Integer id) { …

spring rest path-variables request-mapping
@RequestMapping annotation in Spring MVC

I have a controller with request mapping as @RequestMapping("/**") What does it mean? If I want to exclude certain url …

spring-mvc request-mapping
Spring @RequestMapping

I keep seeing this kind of param value = "/redirect/{id}" in a @RequestMapping annotation of the Spring. I keep wondering …

java spring spring-mvc request-mapping
Spring MVC: RequestMapping both class and method

Is this possible? @Controller @RequestMapping("/login") public class LoginController { @RequestMapping("/") public String loginRoot() { return "login"; } @RequestMapping(value="/error", method=RequestMethod.…

java spring spring-mvc request-mapping