如何获取eclipse JSP表达式语言验证来接受JSP 2.2 EL构造? [英] How to get eclipse JSP Expression Language validation to accept JSP 2.2 EL constructs?

查看:210
本文介绍了如何获取eclipse JSP表达式语言验证来接受JSP 2.2 EL构造?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < c:set var =taskvalue = $ {report.taskMap ['bin:'。concat(bin.id)]}/> 

这工作正常,但是Eclipse抱怨说它是一个语法错误,大概是因为'.concat bin.id)'部分是旧版本的JSP中不支持的JSP 2.2扩展。有没有办法告诉Eclipse接受这种语法?或者,还有一种告诉Eclipse不要将JSP验证错误视为错误的方法,并将其标记为警告?我宁愿不完全关闭验证和mdash;它是有用的—但是将项目标记为包含错误导致各种问题进一步下降。

解决方案

似乎是一个长期的Eclipse验证错误:



https://bugs.eclipse.org/bugs/show_bug.cgi?id=352491



撰写文章(提出错误6年后) ),仍然看起来似乎没有被正确修复。



另请参阅这个类似的问题


I have a page with the following JSP tag:

<c:set var="task" value="${report.taskMap['bin:'.concat(bin.id)]}" />

This works fine, but Eclipse complains about it being a syntax error, presumably because the '.concat(bin.id)' part is a JSP 2.2 extension not supported in older versions of JSP. Is there any way of telling Eclipse to accept this syntax? Or, alternatively, is there a way of telling Eclipse not to consider JSP validation errors as errors, and mark them as warnings instead? I'd rather not turn off validation entirely — it is useful — but having the project marked as containing an error is causing all kinds of problems further down the line.

解决方案

Seems to be a longstanding Eclipse validation bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=352491

As of writing (6 years after the bug was raised), it still doesn't appear to have been properly fixed.

Also see this similar question.

这篇关于如何获取eclipse JSP表达式语言验证来接受JSP 2.2 EL构造?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆