--- [EMAIL PROTECTED] wrote:
> Is there anything that ModelDriven does other than
> push your model on the top of the stack?

public String intercept(ActionInvocation invocation)
throws Exception {
    Object action = invocation.getAction();
    if (action instanceof ModelDriven) {
        ModelDriven modelDriven = (ModelDriven)
action;
        ValueStack stack = invocation.getStack();
        if (modelDriven.getModel() !=  null) {
            stack.push(modelDriven.getModel());
        }
    }
    return invocation.invoke();
}

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to