Spring 3.1.RC1 and PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE
I have the following code snippet.
Code:
@Controller
@RequestMapping("/browse")
public class MediaBrowser {
...
@RequestMapping("/**")
public final ModelAndView listContents(final HttpServletRequest request) {
String folder = (String) request.getAttribute(
HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
...
}
I access the following url:
http://localhost:8080/myapp/browse
In spring 3.0.6.RELEASE, I got the folder variable as null.
In spring 3.1.RC1, the folder variable is /browse.
Is this a bug or has something changed in spring-3.1?
Thanks for clarifying.
Cheers,
Raghuram