Hi
We're using an interceptor to some of our controllers to check that the user is logged on.
The controller method has a path variable in the signature....
Is there an easy way to extract that @PathVariable in the interceptor method...Code:@RequestMapping(method=RequestMethod.GET) public String getVehicleForListing(@PathVariable String listingId, Model model) { ..... }
I wondered whether there is any spring component that I could inject into the interceptor to extract that path variable.Code:public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { ...... }
Thanks for all help
tc


Reply With Quote