Eclipse环境下如何消除JSTL 标签出现的”Multiple annotations found at this line“告警
简介
在使用Eclipse的环境下,使用JSTL的<c:out>标签输出内容中,如果包含需转义字符的,Eclipse会报告"Multiple annotations found at this line"错误告警。
Eclipse错误告警及消除方法。
在HTML的title标签中,使用了<c:out> JSTL标签来输出内容"<c:set>, <c:remove> tags",Eclipse报告了下面的错误告警:
Multiple annotations found at this line:
- Missing end tag for "c:set"
- Missing end tag for "c:remove"
告警标识<c:set>, <c:remove>告警没有结束标签。这里的输出内容并没有什么错误,只是Eclipse解析时,对于语义检查给出错误告警。可以通过下面的配置取消JSP语义检查:Window--->preference--->Validation---->JSP Synatax Validator--->取消build检查。