Pull-MVC and Push-MVC are better understood with how the view layer is getting data i.e. Model to render.
Pull-MVC puts the model data typically constructed in Controllers are kept in a common place i.e. in actions, which then gets rendered by view layer.
Example : Struts 2x
Struts2 is a Pull-MVC based architecture, in which all data is stored in Value Stack and retrieved by view layer for rendering.
In case of Push-MVC, the data (Model) is constructed and given to the view layer by the Controllers by putting it in the scoped variables like request or session.
Example : Spring MVC
No comments:
Post a Comment
Note: only a member of this blog may post a comment.