Dashboard > SpringSide Wiki > HOME > Controller
  SpringSide Wiki Log In | Sign Up   View a printable version of the current page.  
  Controller
Added by SpringSideTeam, last edited by SpringSideTeam on 2006-12-20  (view change)
Labels: 

Controller层总述

1.MVC框架的比较与选择

     MVC框架很多,有分量的也有Struts, Struts2, Webwork, SpringMVC, JSF, Tapestry 六家,SpringSide目前选定演示的是Struts 和 Struts2。

  • Struts: 坊间对Struts的印象很差,其实那只是停留在旧时代的用法,在SpringSide2的里的用法,在简洁度上不输与其他框架多少,何况它用户数在国内还是最多的。
  • Struts2:坊间传闻它就是Webwork改了package name,其实这是不公平的,在Helloworld里它的确和Webwork很像,但它乒乒乓乓捣鼓了半年多,现在还是每天更新更新之中,就绝对没有这么简单。它也有和Struts很像的一面,也有很多的扩展,很适宜迁移Struts的用户,在国内前景上比较乐观的。
  • Webwork:既然它的骨血都到了Struts2,国内当前的用户数量又不算多,所以SpringSide暂时不做demo。
  • SpringMVC: SpringSide1.0所选用的MVC方案,但它实在太少的用户量,再加上SpringSide一直用的都不是它的主推方案(SimpleFormController),还有Spring2.0的MVC部分没有做到它所说的改进,离RoR还是10万八千里,所以放弃了。
  • Tapestry 和 JSF。JSF现在还不是潮流,自己也没用过,不评。Tapestry 在公司几个项目用过,评价较差,美工最恨。

2. Struts

     SpringSide2.0 使用的Struts 非常简单,假设大家已熟悉Struts,请直接看Pragmatic StrutsPragmatic Struts ,其他开发笔记见Struts使用要点

3. Struts2

     2.0 RC1版本才开始Struts2的演示,先以cac 翻译的Struts 应用转移到 Struts2 (译) 作序。

PragmaticStruts (SpringSide Wiki)
Struts (SpringSide Wiki)
StrutsToStruts2 (SpringSide Wiki)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 2006-09-07) - Bug/feature request - Contact Administrators
Get SpringSide at SourceForge.net. Fast, secure and Free Open Source software downloads