|JSP Validator Hates Spring's form:errors Tag [message #222494]
||Tue, 30 September 2008 15:44
| Joe Gallo
Registered: July 2009
I was using Eclipse Ganymede 3.4.0, everything was fine, but now that I've |
upgraded to 3.4.1 I'm getting extraneous errors in *most* of the JSPs in
The errors look like this:
- Syntax error on token "}", delete this token
- Syntax error on token "catch", Identifier expected
- Syntax error, insert "Finally" to complete TryStatement
All of them are at "line 0".
Of course, everything works fine at runtime. I've deleted my entire
Eclipse installation, and reinstalled it from scratch. Deleted my entire
workspace, and rebuilt it from scratch. Of course, the problems remain.
Oddly enough, I've tracked it down to a single custom tag, Spring's
"form:errors" tag. If I have the tag as self closing in a file
(<form:errors ... />), then that file gives me the errors. BUT, if I
change it to be a proper open/closing tag (which shouldn't be necessary),
then Eclipse suddenly is okay with things...
Any bright ideas? My best bet at this point is just to fall back to
Notepad and javac (or maybe just downgrade back to 3.4.0).
|Re: JSP Validator Hates Spring's form:errors Tag: (Workaround) [message #489042 is a reply to message #222494]
||Thu, 01 October 2009 11:00
| Knut Erik Ballestad
Registered: October 2009
I have also experienced the same kind of problems on the latest Eclipse. By doing these steps, I made the problems go away:|
- untick 'Allow projects to override...
- tick 'Suspend all validators.
(maybe also this one, but I am not sure):
Window-Preferences-General-Editors-Structured text editors
- untick 'Report problems as you type...'
Then, right-click + 'Validate' on the project to reset validation markers. Voila!
The problem seems to be that after changing validation configuration, you have to manually trigger an update (by clicking validate).
[Updated on: Thu, 01 October 2009 11:01]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.12668 seconds