Hi all ,
I am a beginner to
struts 2 . Have read few basic concepts. But the push and pull mvc
patterns are still not clear after referring so many forums .
My understanding :
In push mvc the data is created and pushed by the server (like setting the values in the scoped variables ) and the view layer is taking that data from the scoped variable .
My doubt :
1.Here view layer is anyway have to pull data from the scoped variables right ? Then why that name push mvc ? Is it just relates to what server is doing and not about the view layer ?
Pull mvc :
the data is constructed by controller and stored in a common place like a value stack and then
JSP pulls the data from the common place . (here the name relates to view layer
)
My doubt :
2.what is the need for pull mvc ? What is the problem with push mvc (like setting data in scoped attributes )? If this doubt requires any core concept that i need to understand please specify that too . It would be too helpfull .
3.Can anybody give a real time example of these 2 patterns?