So is this 2.0.9 javadoc correct? public interface ModelDriven<T> {
/** * @return the model to be pushed onto the ValueStack instead of the Action itself */ T getModel(); } This sort of sound like the Action IS NOT ALSO on the stack! On 9/21/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- [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] > > -- Scott [EMAIL PROTECTED]