Eclipse Ganymede不能正确验证JSP [英] Eclipse Ganymede not validating JSPs properly
问题描述
令牌上的语法错误},删除此令牌
令牌上的语法错误catch,标识符预期
语法错误,插入最后完成TryStatement
I在这里做最好的练习,没有什么可怕的东西,所以我认为Eclipse错误地将Java类验证器应用到了我的JSP。任何关于如何阻止这种情况的想法?
在选项/编辑器/文件关联下我有以下JSP:
$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ <<<<<<<<<<<<<<<<<<<<<<<
/ pre>
我是否缺少某些东西?
此外,我认为这是正确的,但是如果不是,这里是我的页面指令 -
<%@ page language =javacontentType =text / html; charset = ISO-8859-1
pageEncoding =ISO-8859-1%>
我刚刚下载了Ganymede 3.4.2,并添加了WTP 3.0.4这个错误已经消失了。
I just installed Ganymede and am exploring an old project in it. All of my JSPs are giving me weird validation errors. I'm seeing stuff like -
Syntax error on token "}", delete this token
Syntax error on token "catch", Identifier expected
Syntax error, insert "Finally" to complete TryStatement
I'm doing best practice stuff here, no scriplets or anything, so I think that Eclipse is incorrectly applying a Java class validator to my JSPs. Any idea on how to stop that from happening?
Under Options/Editors/File Associations I have the following for JSPs:
JSP Editor (default)
Web Page Editor
Text Editor
CSS JSP Editor
Am I missing something?
Also I think this is correct, but just in case it's not, here is my page directive -
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
I have just downloaded Ganymede 3.4.2 and added WTP 3.0.4 to it and this error has gone for me.
这篇关于Eclipse Ganymede不能正确验证JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!