public static View resolveView ( HttpServletRequest request , String viewName , String controllerName , ViewResolver viewResolver ) throws Exception { GrailsWebRequest webRequest = GrailsWebRequest . lookup ( request ) ; Locale locale = webRequest != null ? webRequest . getLocale ( ) : Locale . getDefault ( ) ; return viewResolver . resolveViewName ( addViewPrefix ( viewName , controllerName ) , locale ) ; }
Resolves a view for the given view name and controller name