Redirect (enum)
The available policies for rendering the next page if the result is the same as the target (in other words, an action that returns "this").
API
Redirect.java
enum Redirect {
AS_CONFIGURED (1)
EVEN_IF_SAME (2)
ONLY_IF_DIFFERS (3)
}
1 | AS_CONFIGURED
As defined by configuration property |
2 | EVEN_IF_SAME
Redirect (meaning render a new page) even if the result of the action is the same as the target. |
3 | ONLY_IF_DIFFERS
Don’t redirect if the result is the same as the target, instead just update the existing page. |