|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.interceptor.AbstractInterceptor
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor
public class ModelDrivenInterceptor
Watches for ModelDriven
actions and adds the action's model on to the value stack.
StaticParametersInterceptor
and
ParametersInterceptor
if you want the parameters to be applied to the model.
Note: The ModelDrivenInterceptor will only push the model into the stack when the
model is not null, else it will be ignored.
Interceptor parameters:
<action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="model-driven"/> <interceptor-ref name="basicStack"/> <result name="success">good_result.ftl</result> </action>
Constructor Summary | |
---|---|
ModelDrivenInterceptor()
|
Method Summary | |
---|---|
java.lang.String |
intercept(ActionInvocation invocation)
Override to handle interception |
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor |
---|
destroy, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelDrivenInterceptor()
Method Detail |
---|
public java.lang.String intercept(ActionInvocation invocation) throws java.lang.Exception
AbstractInterceptor
intercept
in interface Interceptor
intercept
in class AbstractInterceptor
ActionInvocation.invoke()
, or from the interceptor itself.
java.lang.Exception
- any system-level error, as defined in Action.execute()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |