如何在 Eclipse 中忽略特定的 JSP 验证错误消息?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18958954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I ignore a specific JSP validation error message in eclipse?
提问by Philipp Sander
I want to ignore a specific error message for all my files but I want that other error messages for these files are not affected!
我想忽略所有文件的特定错误消息,但我希望这些文件的其他错误消息不受影响!
my error message looks like this:
我的错误信息如下所示:
Can not find the tag library descriptor for "/WEB-INF/da_taglib.tld"
and appears on this line in my JSP-files:
并出现在我的 JSP 文件中的这一行:
<%@ taglib uri="/WEB-INF/da_taglib.tld" prefix="da" %>`
I searched in the preferences, but only found the option for disabling all error messages for certain files. (Window-> Preferences -> General -> Validation
)
我在首选项中搜索,但只找到了禁用某些文件的所有错误消息的选项。( Window-> Preferences -> General -> Validation
)
It would also be fine if i could disable the error group (Can not find the tag library descriptor for *
)
如果我可以禁用错误组 ( Can not find the tag library descriptor for *
)
Background: this error message appears because of a war-overlay. when i deploy it it works fine, but eclipse is not seeing the file, that's why the error appears.
背景:此错误消息是由于War覆盖而出现的。当我部署它时它工作正常,但 eclipse 没有看到该文件,这就是出现错误的原因。
回答by artbristol
for projects:
对于项目:
(right click) Properties -> Validation -> JSP Syntax -> Directives -> Unresolvable URI or tagdir
for workspace:
对于工作区:
Window -> Preferences -> Web -> JSP Files -> Validation -> Directives -> Unresolvable URI or tagdir