什么是 JSTL?什么是 JSP 标签库?有什么区别?
我读过很多这方面的内容!但我却无法给出一个明确的想法! JSTL 用于避免 JSP 文件中出现 Java 代码。我看到很多变体!
或
... 有时,人们将它们称为标签库。
我想我在这里错过了一些东西!请帮忙。什么是JSTL?什么是标签库?有什么区别吗? 在某些情况下,您需要 c.tld 文件,但我从未听说过 jsp.tld 文件。这是为什么?
I have read a lot about this! But I can't make a clear idea! JSTL is used to avoid Java code in JSP files. I see many variant! <jsp:useBean>
or <c:out>
...
And sometimes, people refer to them as Tag Libs.
I think that I miss something here! Help please. What's JSTL? What are Tag Libraries? Are there any differences?
In some situations, you need a c.tld file, but I never heard about a jsp.tld file. Why is that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
<jsp:useBean>
is not a tag library tag (despite looking like one). It's an action defined in the JSP standard. Yes, this is questionable design.