My Handler method mapping is defined as below.
My issue is that, the request mapping does not match URIs of the form abcd/efgh/category.action. However, it matches abcd/category.action.Code:@RequestMapping(value = "{categoryPath}/category.action", method = RequestMethod.GET) public ModelAndView showCategory(@PathVariable("categoryPath") final String category, final HttpServletRequest request, final HttpServletResponse response) { //Biz Logic }
I tested out the mapping with UriTemplate class like below:
The output generated is:Code:final UriTemplate template = new UriTemplate("{category}/category.action"); System.out.println(template.match("abcd/efgh/category.action"));
So then why does my request mapping not work with abcd/efgb/category.action ?Code:{category=abcd/efgh}
I use spring 3.


Reply With Quote
