|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public static @interface Jpf.ConditionalForward
Annotation used within Jpf.SimpleAction
to forward conditionally, based on the evaluation of a JSP 2.0-style
expression.
Required Element Summary | |
---|---|
String |
condition
The JSP 2.0-style expression (e.g., ${pageFlow.myProperty} that will trigger this forward. |
Optional Element Summary | |
---|---|
String |
action
The name of an action to forward to. |
boolean |
externalRedirect
When set to true , then this Forward will redirect to a path that is external to the
current webapp; for example, the following path would redirect to /dir/mypage.jsp in webapp "/myapp":
path="/myapp/dir/mypage.jsp", externalRedirect=true
With externalRedirect set to false , the path above would forward to
/myapp/dir/mypage.jsp under the current webapp. |
String |
name
The forward name, which is optional for ConditionalForwards. |
Jpf.NavigateTo |
navigateTo
A symbolic name for the page/action to which to navigate. |
String |
outputFormBean
The name of a member variable whose value will be passed along (to a page or to another action) with this forward. |
Class |
outputFormBeanType
The type of form bean that will be passed along (to a page or to another action) with this forward. |
String |
path
The forward path. |
boolean |
redirect
If true , there will be a browser redirect (not a server forward) to the destination path. |
boolean |
restoreQueryString
If true , the original URL query string will be restored when the previous page or action is
run. |
String |
returnAction
The action to be invoked on the calling page flow. |
String |
tilesDefinition
A Tiles definition to forward to. |
Element Detail |
---|
public abstract String condition
${pageFlow.myProperty}
that will trigger this forward. If
the expression evaluates to true
, then the forward will be used.
public abstract String action
path()
, navigateTo()
,
returnAction()
, and tilesDefinition()
.
public abstract boolean externalRedirect
true
, then this Forward will redirect to a path that is external to the
current webapp; for example, the following path would redirect to /dir/mypage.jsp in webapp "/myapp":
path="/myapp/dir/mypage.jsp", externalRedirect=true
With externalRedirect
set to false
, the path above would forward to
/myapp/dir/mypage.jsp under the current webapp. Note that externalRedirect=true
implies that redirect=true
.
public abstract String name
public abstract Jpf.NavigateTo navigateTo
path()
,
returnAction()
, action()
, and tilesDefinition()
.
Jpf.NavigateTo
public abstract Class outputFormBeanType
public abstract String outputFormBean
public abstract String path
navigateTo()
, returnAction()
, action()
,
and tilesDefinition()
.
public abstract boolean redirect
true
, there will be a browser redirect (not a server forward) to the destination path.
public abstract boolean restoreQueryString
true
, the original URL query string will be restored when the previous page or action is
run. Only valid when the navigateTo
attribute is used.
public abstract String returnAction
path()
,
navigateTo()
, action()
, and tilesDefinition()
, and only valid in a nested page flow
(Jpf.Controller.nested()
must be true
).
public abstract String tilesDefinition
Jpf.Controller.tilesDefinitionsConfigs()
. Mutually-exclusive with path()
, navigateTo()
,
returnAction()
, and action()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |