不可或缺的JSP标签库

发布于 2024-07-07 12:17:16 字数 372 浏览 6 评论 0原文

我很想知道除了 JSTL 之外“必须拥有”的 JSP 标记库是什么。 到目前为止我发现的都是

  • ccc - 用于访问静态常量在 JSP 中(不带 scriptlet)
  • displaytag - 用于生成复杂的 HTML 表格,包括数据分页、分组、排序、导出等。

还有哪些其他不可或缺的标签库?

I'm interested to know what are the "must have" JSP tag libraries apart from JSTL. All I've found so far are

  • ccc - for accessing static constants in JSP (without scriptlet)
  • displaytag - for generating sophisticated HTML tables that includes data paging, grouping, sorting, exporting etc.

What other indispensible tag libs are out there?

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

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

发布评论

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

评论(3

缺⑴份安定 2024-07-14 12:17:16

我使用displaytag,并且对此非常满意。 我使用的唯一的其他标签库是 Stripes Action Framework 附带的标签库。

但我真正不可或缺的标签库是我们写的。

在我们的办公室里,我们的内部框架现在必须有 50 多个。

然而,它们背后的关键是它们是 JSP 2.0 标记文件,而不是用 Java 编写的类 JSP 标记。 标记文件功能强大且非常易于使用。

经典的 JSP 标记由于太困难而阻碍了标记开发,而标记文件则鼓励它进行现在重构 JSP 页面的微不足道的事情。

我认为标签文件和 JSTL 将 JSP 作为一种页面标记技术从平庸变成了最好的技术之一。

I use displaytag, and have been quite happy with it. The only other tag library I use is the one that comes with the Stripes Action Framework.

But my truly indispensable Tag library is the one we wrote.

At the office we must have over 50 of them by now for our internal framework.

The key behind them, though, is that they're JSP 2.0 Tag Files rather than class JSP Tags written in Java. Tag files are powerful and very easy to use.

Where classic JSP tag discouraged tag development because it was so difficult, Tag Files encourage it to where it's trivial for refactoring JSP pages now.

I think Tag Files and JSTL turned JSP as a page markup technology from mediocre to one of the best out there.

请持续率性 2024-07-14 12:17:16

struts 或您最喜欢的框架中可用的标签集。 这些往往几乎是不可或缺的。 同意 displaytag 是一个很棒的库。

The set of tags available in struts or your favourite framework. These tend to be almost indispensable. Agreed that displaytag is a fantastic library.

给不了的爱 2024-07-14 12:17:16

核心 JSTL 库 , 明显地。

The Core JSTL library, obviously.

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