The scenario can be described as follows:
I'd like to return the ModelAndView object with specified view name at my controller, and if that view is invalid (not defined in the configuration file), I'd return the default view. But I do not know how to test a view is valid.
Any help will be greatly appreciated.


Reply With Quote