简体   繁体   English

JSP中的Eclipse Keppler Java 1.7错误

[英]Eclipse Keppler java 1.7 error in jsp

I work with Eclipse Keppler and Java 1.7. 我使用Eclipse Keppler和Java 1.7。

I have the following jsp 我有以下jsp

<c:choose> 
<c:when test='${attributeName.name.equals("Owner")}'> 
/*    <c:when test="${attributeName.name == 'Owner'}">  */
$(td).append(list[i].owner);
</c:when>
<c:otherwise> 
$(td).append(getAttributeValue(list[i].attributes, '${attributeName.id}', '${attributeName.name}'));
</c:otherwise>
</c:choose>

In the Keppler editor I have the following error 在Keppler编辑器中,我遇到以下错误

在此处输入图片说明

I configured the values: 我配置了值:

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Is it something wrong in this configuration? 这种配置有问题吗?

您必须导入JSTL jar并添加

`<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>` at top of jsp page

I think this is an Eclipse bug. 我认为这是一个Eclipse错误。 It looks similar to the bug . 它看起来与错误类似。

You may have to use new version of Eclipse. 您可能必须使用新版本的Eclipse。

I think it is a bug , anyway doing like below will prevent even different kind of errors in jsp 我认为这是一个错误,无论如何像下面这样可以防止jsp中甚至不同类型的错误

Project properties --> Validation --> disable all validators in the grid 项目属性->验证->禁用网格中的所有验证器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM