Search code examples
javaeclipsevalidationjspganymede

Eclipse Ganymede not validating JSPs properly


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"%>

Solution

  • I have just downloaded Ganymede 3.4.2 and added WTP 3.0.4 to it and this error has gone for me.