在包含的 JSP 中使用默认标签库进行编辑

发布于 2024-08-24 01:27:16 字数 218 浏览 3 评论 0原文

正如您所知,在 Eclipse 的 jsp 编辑器中,一旦定义了外部标记库,我就会获得它们的代码帮助。在我现在正在处理的项目中,只是包含了很多 jsps,并且顶部没有 taglib 定义,这给了我很多编辑器警告。在部署中这并不重要,因为标记库是在 head-jsp 中定义的。

有没有一种方法可以让我在项目中定义默认标签库,这样即使我不再在每个文件中包含标签库,Eclipse 编辑器也会为我提供代码辅助?

Within Eclipse's jsp-editor, as you all know, I get code-assistance for external taglibs once I defined them. In the project I am working on now a lot of jsps are just included and have no taglib definition in the top which gives me a lot of editor warnings. In the deployment this doesnt matter because the taglibs are defined in the head-jsp.

Is there a way that I can define default taglibs within a project so the eclipse editor will give me code-assist even though I dont include the taglib in each file again?

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

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

发布评论

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

评论(1

夏至、离别 2024-08-31 01:27:16

基本上 Eclipse 期望 TLD 文件位于某些目录中,我通过将其放入来解决这个问题
通过建立指向原始位置的链接资源,在项目根目录中的 WEB-INF 等目录中。

c.托马斯

basically eclipse expects that TLD files in certain directories, i solved this by putting it
in a diretory like WEB-INF in the project root, by estasblishing a linked resource to the original location.

c. Thomas

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