diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java index 8b19ea0eea0..0ad70e69ea9 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java @@ -52,12 +52,12 @@ import org.springframework.web.servlet.View; * "/WEB-INF/jsp/test.jsp" * *
As a special feature, redirect URLs can be specified via the "redirect:" - * prefix. E.g.: "redirect:myAction.do" will trigger a redirect to the given + * prefix. E.g.: "redirect:myAction" will trigger a redirect to the given * URL, rather than resolution as standard view name. This is typically used * for redirecting to a controller URL after finishing a form workflow. * - *
Furthermore, forward URLs can be specified via the "forward:" prefix. E.g.: - * "forward:myAction.do" will trigger a forward to the given URL, rather than + *
Furthermore, forward URLs can be specified via the "forward:" prefix. + * E.g.: "forward:myAction" will trigger a forward to the given URL, rather than * resolution as standard view name. This is typically used for controller URLs; * it is not supposed to be used for JSP URLs - use logical view names there. * @@ -224,7 +224,7 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements * interpreted as relative to the web application root, i.e. the context * path will be prepended to the URL. *
Redirect URLs can be specified via the "redirect:" prefix. - * E.g.: "redirect:myAction.do" + * E.g.: "redirect:myAction" * @see RedirectView#setContextRelative * @see #REDIRECT_URL_PREFIX */ @@ -251,7 +251,7 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements * difference. However, some clients depend on 303 when redirecting * after a POST request; turn this flag off in such a scenario. *
Redirect URLs can be specified via the "redirect:" prefix. - * E.g.: "redirect:myAction.do" + * E.g.: "redirect:myAction" * @see RedirectView#setHttp10Compatible * @see #REDIRECT_URL_PREFIX */ @@ -354,7 +354,7 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements *