This commit is contained in:
Keith Donald
2008-04-23 13:05:53 +00:00
parent a76e05194b
commit 6c6ac180d8

View File

@@ -54,9 +54,15 @@ public interface FlowHandler {
* Handles a specific flow execution outcome. Used by a Controller to get the location of the resource to redirect
* to after the outcome is handled.
* <p>
* If the location string returned begins with a forward-slash, the location is treated as relative to the web
* application context path. If the location string does not begin with a slash, the location is treated as relative
* to the current servlet path.
* The following prefixes are supported for qualifying the returned location string:
* <ul>
* <li>servletPath: - the location is relative to the current servlet
* <li>contextPath: - the location is relative to the current web application</li>
* <li>serverPath: - the location is relative to the current server, which may host several applications
* <li>url: - the location is an absolute URI beginning with a scheme like "http://" If the location string
* </ul>
* Also, if the returned location no prefix, for example "/hotels/index", the location is treated as relative to the
* current servlet by default.
*
* @param outcome the outcome that was reached
* @param request the current request