Use RequestContextListener or org.springframework.web.filter.RequestContextFilter to expose the current web request.