also if i replace a by "a" it will give give ERROR..
That is correct, "a" is a
String that does not represent a number and cannot be translated into a number like for instance "15".
${"Not a Number" + 3} will evaluate in a javax.servlet.jsp.el.ELException
If you use:
${(5 + 3 + a > 0) ? 1 : 2}
the EL-parser will try to find an attribute in one of the 4 scopes named 'a' and if it is not found it will be treated as an 0 or null like Herman is saying (@ Herman congratulations on your result!)
Have a look at some EL examples in my notes (
ScwcdLinks)
Regards,
Frits