JSP Validator Hates Spring's form:errors Tag [message #222494] |
Tue, 30 September 2008 15:44 |
Joe Gallo Messages: 3 Registered: July 2009 |
Junior Member |
|
|
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
my application.
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).
Joe
|
|
|
Re: JSP Validator Hates Spring's form:errors Tag [message #222563 is a reply to message #222494] |
Thu, 02 October 2008 18:49 |
Eclipse User |
|
|
|
Originally posted by: david_williams.linux.vnet.ibm.com
Joe Gallo wrote:
>
> 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).
>
One additional idea is to open a bug! Sounds like a bad regression.
|
|
|
|
|
|
|
|
|
|
|
|
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 Messages: 1 Registered: October 2009 |
Junior Member |
|
|
I have also experienced the same kind of problems on the latest Eclipse. By doing these steps, I made the problems go away:
Window-Preferences-Validation:
- 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.04446 seconds