Eclipse:这些JSP错误是什么? [英] Eclipse: What are these JSP errors?

查看:87
本文介绍了Eclipse:这些JSP错误是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个Web应用程序,当在Eclipse中对其进行设置时,它会在特定的JSP中显示错误.

I've inherited a web application and when setting it up in Eclipse it shows errors in a particular JSP.

在问题"视图中,错误没有与之相关的描述,单击它们会将我带到JSP的顶部,红色错误下划线显示在字符串的中间,如下所示:

The errors have no description associated with them in the Problems view, and clicking them there takes me to the top of the JSP, where the red error underline appears halfway through the string like this:

<%@ page erro[rPage="/basicError.j]sp" %>

[<%@ page import="javax.s]ervlet.ServletContext" %>

想象一下,在[]括号内的部分下面有一个红色的错误"下划线(粗体等在该代码段中将不会显示,并且除非在代码段中,否则我将无法显示该代码,因此请使用[和].

Imagine a red 'error' underline under the parts bracketed by [] (bold, etc won't show in this code segment and I can't show the code at all unless it's in a code segment, hence using [ and ].

其他错误示例:

单击行左侧的红色"X"图标无济于事.

Clicking the red 'X' icon to the left of the lines does nothing.

我尝试重新导入项目,刷新,验证,四处移动行等,但是我总是会收到此错误.

I've tried re-importing the project, refreshing, validating, moving the lines around, etc, but I always get this error.

有人知道这里发生了什么吗?

Does anyone know what's happening here?

推荐答案

运行它.它行得通吗?然后再次是Eclipse的内置JSP验证器,即史诗般的失败.只需通过 Web> JSP文件>验证>滚动列表在工作区首选项中将其禁用,然后将所有EL验证设置设置为 Ignore .同样,在主要的 Validation 首选项中,取消选中与JSP相关的所有复选框.但是,这似乎并不能消除所有警告/错误,但至少可以将烦恼降到最低.

Run it. Does it work? Then it's again the Eclipse's builtin JSP validator which is an epic fail. Just disable it in workspace preferences through Web > JSP Files > Validation > scroll list to very bottom and set all EL validation settings to Ignore. Also in the main Validation preference uncheck all checkboxes related to JSP. This however doesn't seem to remove every warning/error, but it at least minimizes the annoyance.

这篇关于Eclipse:这些JSP错误是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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