this is a question for Struts2 interceptors..

I saw some examples, the action class implements ModelDriven,
<interceptor-ref name="model-driven"/>

So this function is added in action class:

public Object getModel() {
       return user;
}

Then jsp can directly access the properties of the User object.

Beside this, what is the benefit of using this interceptor ?
Is that only for jsp purpose?


-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-%22model-driven%22-interceptors-tf2595966.html#a7240831
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to