下面開始比較各個(gè)框架,僅摘要如下,請(qǐng)恕本人只看缺點(diǎn),不看優(yōu)點(diǎn)。因?yàn)閮?yōu)點(diǎn)是說(shuō)不完的
Struts: used since June 2001 - same time 1.0 was released.
Spring MVC: used since January 2004 - before 1.0 was released.
WebWork: used since July 2004.
Tapestry: used since July 2004.
JSF: used since July 2004 - both Sun’s RI and MyFaces.?
Struts缺點(diǎn):
ActionForms - they’re a pain
Can’t unit test - StrutsTestCase only does integration
Project has been rumored as “dead”
Display Tag:
Spring MVC缺點(diǎn):
Configuration intensive - lots of XML
Requires writing lots of code in JSPs
Almost too flexible - no common parent Controller
WebWork缺點(diǎn):
Small Community
Documentation is poorly organized
Tapestry缺點(diǎn):
Documentation very conceptual, rather than
pragmatic
Steep learning curve - very few examples
Long release cycles - major upgrades every year
JSF缺點(diǎn):
Tag soup for JSPs
Doesn't play well with REST or Security
No single source for implementation
SiteMesh:
?
IDE支持
Struts has a lot of IDE support and even has frameworks built on top of it (i.e. Beehive’s PageFlow)
Spring has Spring IDE - only does XML validation, not a UI/web tool
WebWork has EclipseWork
Tapestry has Spindle - great for coders
JSF has many, and they're getting better and better