ModelDrivenInterceptor
instead.@Deprecated public class ModelDrivenInterceptor extends AbstractInterceptor
ModelDriven
actions and adds the action's model on to the value stack.
Note: The ModelDrivenInterceptor must come before the both 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:
Extending the interceptor:
There are no known extension points to this interceptor.Example code:
<action name="someAction" class="com.examples.SomeAction"> <interceptor-ref name="modelDriven"/> <interceptor-ref name="basicStack"/> <result name="success">good_result.ftl</result> </action>
Modifier and Type | Class and Description |
---|---|
protected static class |
ModelDrivenInterceptor.RefreshModelBeforeResult
Deprecated.
Refreshes the model instance on the value stack, if it has changed
|
ConditionalInterceptor.LegacyAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
refreshModelBeforeResult
Deprecated.
|
Constructor and Description |
---|
ModelDrivenInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
intercept(ActionInvocation invocation)
Deprecated.
Override to handle interception
|
void |
setRefreshModelBeforeResult(boolean val)
Deprecated.
|
intercept, shouldIntercept, shouldIntercept
destroy, init, setDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt
adapt
destroy, init
public void setRefreshModelBeforeResult(boolean val)
public String intercept(ActionInvocation invocation) throws Exception
AbstractInterceptor
intercept
in class AbstractInterceptor
Exception
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.