i want to handle a URL which comes from the client side like this: $.ajax({url : "someString/"+ catID+"/"+productName+"/"+imageSrc,
in that above url the imageSrc contains multiple forward slashes("/").
now my controller class method for handling this looks like this:
@RequestMapping(value = "/someString/{categoryId}/{productId}/{imgSrc}", method = RequestMethod.GET)
public void someMethod(Model model,
@PathVariable("categoryId")
String categoryId, @PathVariable("productId") String productId,
@PathVariable("imgSrc") String imgSrc, HttpServletRequest request)
but its not giving the correct url. The middle {productId} is always getting erased and replaced by the {imgSrc}.
is there anyway to get this working, i.e, is there anyway to handle this type of variable length string using spring mvc 3.0?
thank you.