在eclipse-oxygen上编辑jsp时,option里写c:if报错,原来这是该版本的eclipse的一个bug.
如下面:
<option value="1" <c:if test="${isDisplay == 1 }">selected="selected"</c:if> >是</option>
报错提示:
Multiple annotations found at this line:
- The tag handler class for "c:if" (org.apache.taglibs.standard.tag.rt.core.IfTag) was not
found on the Java Build Path
- No end tag (</option>).
我是在http://bbs.youkuaiyun.com/topics/392188131?page=1找到解决方法的。根据网友 lzm785126102的提示
具体解决方法如下:
1.到 链接: https://pan.baidu.com/s/1eR3Jz38 密码: m53v 下载文件518987-patch01.zip
2.解压,把plugins目录下org.eclipse.wst.html.core_1.2.101.v20170704_fix518987_01.jar文件改为同名并
覆盖掉eclipse/plugins/org.eclipse.wst.html.core_1.2.100.v201705012043.jar( 这里可能你的org.eclipse.wst.html.core版本后缀不同,根据情况,改为你自己的版本后缀就行了),覆盖前最后备份。
3.重启eclipse
问题解决,不报错了,红叉消失。
这是eclipse官方解决方法和文件下载连接 https://bugs.eclipse.org/bugs/show_bug.cgi?id=518987#c0