JSF 和 struts2 失败的地方/好
我正在开始一个网络系统,但无法决定使用什么技术! Struts2 和 JSF(带有 jboss seam)是不错的选择,但我无法决定哪个更好。 JSF 有一些我不喜欢的地方,也许它的“范式”没有类似的动作。还有Struts2,这里的人用的不多。
该系统是一个地图协作网站。
I am begining a web system and can't decide what technology use! Struts2 and JSF (with jboss seam) are a nice choices, but I can't decide which's better. In JSF have some that I don't like, maybe its "paradigm" no action like. And Struts2, the peoples here don't use more.
The system is a map collaborative web site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我广泛使用过 Struts2 和 JSF,两者都很好,但我仍然推荐 JSF。这就是原因。
如果您对 JSF2 中的一些新功能感兴趣,请查看 这篇博文。另外,您可能想查看 Stripes,它也是一个非常好的服务器端 Web 框架,最后这里 是对大多数 Java Web 框架的非常彻底(而且有点旧)的比较。
I have used both Struts2 and JSF extensively, both are good but I would still recommend JSF. Here is why.
If you are interested in some of the newer features in JSF2 then checkout this blog post. Also you might want to check out Stripes, it is also a very nice server side web framework and finally here is a very thorough (and a little old) comparison of most Java web frameworks.
这是一个非常有争议的话题。我认为与JSF相比,Struts2的主要优点是它的简单性,更容易掌握。特别适合 Web 编程初学者或熟悉“基于操作”的 Web 框架(Struts 1、Webworks、Spring MVC、Stripes)的人。
但 Lars Tackmann 的观点是有效的(尽管 Struts2 并不强迫您使用 JSP;事实上它在内部使用了 FreeMarker)。确实,Struts2 还没有获得很大的用户基础,社区(用户和开发人员)似乎不太活跃,这是一个很大的缺点。 JSF 也有它的缺点,我听说过(我没有使用过它)...就像每个 Java Web 框架一样。
This a very debatable topic. I think the main advantage of Struts2, compared to JSF, is its simplicity, it is much easier to grasp. Specially for beginners in web programming, or those familiar with "action based" web frameworks (Struts 1, Webworks, Spring MVC, Stripes).
But Lars Tackmann's points are valid (though Struts2 does not force you to use JSP; and indeed it uses FreeMarker internally). It's true that Struts2 has not attained a big user base, the community (both users and developers) does not seem to be very active, and that is a big minus. JSF also has its shortcomings, I've heard (I've not used it)... as every Java web framework, it seems.