Struts 和 Tapestry 框架有什么区别

发布于 2024-10-07 08:42:33 字数 78 浏览 0 评论 0原文

谁能解释一下 Struts 和 Tapestry 框架之间的区别或者它们之间的比较?

问候, 马亨德拉·阿瑟内里亚 孟买 印度

Can any one explain me the difference between Struts and Tapestry framework or may be the comparison between them?

Regards,
Mahendra Athneria
Mumbai
India

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

硪扪都還晓 2024-10-14 08:42:33

Tapestry 教程已在此处更新:http://tapestry.apache.org/tapestry-tutorial.html< /a>

就差异而言,它们是巨大的。

Struts是一个面向行动的框架;它完善了 Servlet API 的一些最粗糙的边缘,并使得将 Actions(相当于 Servlet 的 Struts)链接到视图(通常是 JSP)变得稍微容易一些。然而,它把所有繁重的工作都留给了你。

Tapestry 是一个面向组件的框架:它完成所有繁重的工作。组件意味着 Tapestry 了解更多关于应用程序的结构,并且可以完成大量繁忙的工作和管道工作,例如找出好的 URL 并自动响应它们:您只需关心页面类和方法即可。除此之外,它还有更多的作用。

Tapestry 可以做很多事情,但也会在您不想要的时候试图阻止您的行为。

最后,Struts 具有在任何地方都无法比拟的生产力功能:出现问题时的最佳异常报告,以及实时类重新加载,以便您可以更改代码并立即在浏览器中看到更改。

The Tapestry tutorial is updated here: http://tapestry.apache.org/tapestry-tutorial.html

In terms of differences, they are vast.

Struts is an action-oriented framework; it rounds out a few of the roughest edges of the Servlet API and makes it marginally easier to link Actions (the Struts equivalent of a Servlet) to views (usually JSPs). However, it leaves all the heavy lifting to you.

Tapestry is a component oriented framework: it does all the heavy lifting. Components mean that Tapestry knows much more about the structure of your application, and can do lots of busy work and plumbing such as figuring out good URLs and responding to them automatically: you just concern yourself with your page classes and methods. It does tons more besides.

Tapestry does a lot, but also tries to stay our of your way when you don't want it.

Finally, Struts has productivity features that are unmatched anywhere: the best exception reporting for when things go wrong, and live class reloading so that you can change your code and immediately see the change in your browser.

初懵 2024-10-14 08:42:33

我认为您不会找到这两个框架的经验丰富且公正的开发人员来为您提供答案。我想您将需要投入一些时间来亲自接触这两个框架,以了解您是否喜欢基于操作的方法或基于组件的方法。

Tapestry 旧站点 上有一个针对 Struts 开发人员的简短介绍,其中解释了主要差异。

I don't think you will find an experienced and unbiased developer of both frameworks to give you the answer. I guess you will have to invest some time in getting your hands dirty with both of the frameworks to get a feeling wheter you like action based or component based approach.

There is a short introduction for Struts developers at Tapestry old site which explains major differences.

衣神在巴黎 2024-10-14 08:42:33

您已经完成了每个教程的教程了吗?我希望这比试图解释它的人更好地说明差异:

Tapestry 5:
http://tapestry.apache.org/tapestry5.1/tutorial1/

Struts 2 :
https://cwiki.apache.org/WW/getting-started.html

Here you been through the tutorial for each? I would have that would illustrate the differences better than someone trying to explain it:

Tapestry 5:
http://tapestry.apache.org/tapestry5.1/tutorial1/

Struts 2:
https://cwiki.apache.org/WW/getting-started.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文