MVC 的 Pull 和 Push 类型的区别
来源:互联网 发布:淘宝店标图片免费下载 编辑:程序博客网 时间:2024/05/16 08:01
MVC Push:
This is where the framework creates context objects what are "pushed" or made available to the templating language like JSP's allowing them either via tags or scripting to get their values and dislay them on the page. Struts and Expresso a good examples of this. In Expresso you create Output objects that are made just for rendering the View
MVC Pull:
This is where you have one or a few objects that are made available to all templates. The big difference is the java developer does not need to create any sort of output object, they just make backend model objects available to the View templetes. WebWork and Maverick are a good example of this, they a provide accessor methods(getters) in their Action classes that allow the View to "pull" whatever they like as long as they know of the API for that Action.
参考文档:
http://www.theserverside.com/patterns/thread.tss?thread_id=22143
- MVC 的 Pull 和 Push 类型的区别
- 总结MVC中push和pull的区别
- git pull和git push的区别
- 关于push和pull模式的说明
- directshow的push和pull mode
- adb push和pull指令的使用
- 【adb】 pull和push的正确姿势
- Pull和Push通信机制的研究
- GIT的Push和Pull,强制Pull覆盖本地命令
- 水晶报表的拉(Pull)和推(Push)模型
- 设置git push和pull的默认分支
- ADB - adb push/pull 真机和PC的数据传输
- git pull和git push总要输密码的原因
- git push和git pull的默认行为
- 简单说下docker的pull 和 push
- Push和Modal的区别
- push和pushl的区别
- present和push的区别
- 【求助】请教:基于特征脸的人脸识别的分类特征是什么?
- windows7下php5.3.2.0连接MYSQL5.1.42问题
- Static text子类的完美实现
- (asp.net)CSV文件列转行显示
- 用Class组合实现Div+CSS布局
- MVC 的 Pull 和 Push 类型的区别
- 摘要
- [转]驱动中获取进程完整路径名
- ntsd病毒!
- nc传文件
- 硬件断点和软件断点
- (转)Virtual List的使用方法
- table中的边框显示
- JAVA和C++区别浅析