任何框架项目都可以使用Struts-taglib吗

发布于 2024-08-31 02:00:34 字数 333 浏览 2 评论 0原文

我读过这里一个缺点有些人可能会发现使用 Spring MVC 而不是 Struts 是 Struts 具有输出 HTML 代码的标签,而 Spring 具有不生成 HTML 的标签。

我的问题是,您不能通过将正确的 jar 放入 WEB-INF/lib 文件夹来在 Spring MVC 项目(或任何其他类型的框架项目)中使用 Struts tag-lib 吗?

任何澄清表示赞赏,谢谢。

I have read here that one disadvantage that some may find with using Spring MVC over Struts is that Struts has tags that output HTML code, while Spring has tags that don't generate HTML.

My question is can't you just use the Struts tag-lib in a Spring MVC project (or any other kind of framework project), by dropping the right jar into the WEB-INF/lib folder?

Any clarification is appreciated, thanks.

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

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

发布评论

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

评论(1

温暖的光 2024-09-07 02:00:34

Spring 确实与 Struts 集成。这并不像仅仅删除 JAR 及其依赖项那么简单;你必须配置Spring才能了解支柱。

Spring does integrate with Struts. It's not as easy as just dropping the JAR and its dependencies; you have to configure Spring to know about Struts.

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