|
Re: el and jsp fragment validation [message #217284 is a reply to message #215787] |
Wed, 09 July 2008 23:58 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds