Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » el and jsp fragment validation
el and jsp fragment validation [message #215787] Thu, 19 June 2008 00:15 Go to next message
Guy Mac is currently offline Guy MacFriend
Messages: 3
Registered: July 2009
Junior Member
Hello, I've just started using Eclipse Ganymede (the 'EE distribution',
version 3.4.0 build I20080530-1730 on Mac OS X Leopard).

Coupla issues.

#1. It doesn't like the EL ternary notation, e.g. ${ x eq 'x' ? 'y' : 'z'
}.
Looks like that's OK per the JSP spec (and it certainly works!).

#2. Errors on jsp fragments (*.jspf) even though I've unchecked the
'validate jsp fragments' box in the preferences.
Re: el and jsp fragment validation [message #217284 is a reply to message #215787] Wed, 09 July 2008 23:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sdmurphy.pictage.com

I am having similar problems. It is very annoying.
All my pages validated fine in 3.3 and with Ganymede 3.4, I now have 350
errors.

<%@ include file="Event_Header.jspf" %>
Reports:
Syntax error on token "}", { expected

${(!empty event.twoforOnePromotion && group.firstItem.productId !=
'CustomImage')?group.quantity*2:group.quantity}

Reports:
EL Syntax error.
Invalid character used in text string (I don't think it likes ':').

Anyone have any luck on resolving this?
Re: el and jsp fragment validation [message #217289 is a reply to message #215787] Thu, 10 July 2008 00:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sdmurphy.pictage.com

If you want to ignore fragment errors, there are two locations you
probably need to uncheck Validate JSP Fragments.

Project > Properties

JSP Fragment > Enable specific setting: > Validate JSP Fragments
Validation > JSP Syntax > Validate JSP Fragments

Under EL Sytax problem you can also set to ignore--which I don't like
because there nothing wrong with syntax.

The Syntax error on token "}", { expected
error is still driving me crazy. I think it is stemming from a EL tag in
the fragment?
Re: el and jsp fragment validation [message #217547 is a reply to message #217289] Fri, 11 July 2008 23:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cgbateman.oracle.com

Scott Murphy wrote:

> The Syntax error on token "}", { expected
> error is still driving me crazy. I think it is stemming from a EL tag in
> the fragment?

This limitation is documented in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=129358.

Most likely this is due to the fact that the EL parser tries to recover
from bad syntax (in this case, the syntax is correct but the parser thinks
it's bad) by truncating the expression text. So x ? y : z is truncated to
just "x". This may be causing the framework the not match braces properly.
Re: el and jsp fragment validation [message #218277 is a reply to message #217547] Sat, 26 July 2008 05:54 Go to previous message
Eclipse UserFriend
Originally posted by: sdmurphy.pictage.com

That bug is from 2006?
Comment #6 From Cameron Bateman 2006-06-12 20:17:30 -0400?

Eclipse 3.3 worked flawlessly. When I switched to 3.4 (Ganymede) is when
I got the million JSP el syntax error exceptions.

Is there another way to write a ternary expression that allows it to be
parsed correctly? Otherwise, I am going to be forced to roll back to
Eclipse 3.3 again. It just seems to be way more stable.
Previous Topic:404 error bug in Internal Web Browser
Next Topic:Possible bug in XML formatter
Goto Forum:
  


Current Time: Tue Apr 16 14:35:05 GMT 2024

Powered by FUDForum. Page generated in 0.95418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top