Spring mvc 3 : How to get path variable in an interceptor?
The thread linked to by Pao worked a treat for me In the preHandle() method you can extract the various PathVariables by running the following code Map pathVariables = (Map) request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);