Unfortunately InternalResourceViewResolver does not support view template expressions, it only allows a static prefix and suffix values to be injected. You could implement your own ViewResolver that would do this, perhaps even a special subclass or composite of InternalResourceViewResolver. ViewResolver is passed the HttpServletRequest and from the request you can obtain the currentDevice as a request attribute. You can also get at RequestAttributes via the RequestContextHolder thread local.
Keith
Last edited by Keith Donald; Nov 29th, 2010 at 04:35 PM.
Keith Donald
Core Spring Development Team