Clarify ServletException is thrown when no view is resolved (SPR-7339)
This commit is contained in:
parent
3a9fc70f91
commit
91172f4f43
|
|
@ -1031,6 +1031,7 @@ public class DispatcherServlet extends FrameworkServlet {
|
||||||
* @param mv the ModelAndView to render
|
* @param mv the ModelAndView to render
|
||||||
* @param request current HTTP servlet request
|
* @param request current HTTP servlet request
|
||||||
* @param response current HTTP servlet response
|
* @param response current HTTP servlet response
|
||||||
|
* @throws ServletException if view is missing or cannot be resolved
|
||||||
* @throws Exception if there's a problem rendering the view
|
* @throws Exception if there's a problem rendering the view
|
||||||
*/
|
*/
|
||||||
protected void render(ModelAndView mv, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
protected void render(ModelAndView mv, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -2027,9 +2027,9 @@ public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
|
||||||
|
|
||||||
<para>If a specific view resolver does not result in a view, Spring
|
<para>If a specific view resolver does not result in a view, Spring
|
||||||
examines the context for other view resolvers. If additional view
|
examines the context for other view resolvers. If additional view
|
||||||
resolvers exist, Spring continues to inspect them. <!--So what happens after Spring inspects them?-->If
|
resolvers exist, Spring continues to inspect them until a view is
|
||||||
they do not exist, Spring throws an
|
resolved. If no view resolver returns a view, Spring throws a
|
||||||
<classname>Exception</classname>.</para>
|
<classname>ServletException</classname>.</para>
|
||||||
|
|
||||||
<para>The contract of a view resolver specifies that a view resolver
|
<para>The contract of a view resolver specifies that a view resolver
|
||||||
<emphasis>can</emphasis> return null to indicate the view could not be
|
<emphasis>can</emphasis> return null to indicate the view could not be
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue