I have this controller mapping
@RequestMapping("/{language}/payment/{id}/reward/{rewardId}/name/{name}/address/{address}")
public String paymentPackage(@PathVariable Long id, @PathVariable Long
rewardId, @PathVariable String name, @PathVariable String address,
ModelMap model, HttpServletRequest request)
It works well, but now I need to pass “HttpServletRequest request” to other methods, but request does not contain variables from REST URL (id, name, …)
Is it possible to have this variables in HttpServletRequest too?
Thank you.
create a filter and modify request to contain all needed variables. Or modify the request inside the controler.