jsp - EL syntax error is en -
the following statement in jsp page encounters error near first equals occurence.what reason , how can solve problem.please rectify me possible
${(fn:length(updatestock.todaydimensionstones)==i.count) && (!dimensionstones.status.equals('new')||!dimensionstones.isinspected.equals('no'))}
page loaded successfully.but in jboss visual studio editor says
multiple annotations found @ line:- encountered "(" @ line 1, column 86. expecting 1 of: "." ... ">" ... "gt" ... "<" ... "lt" ... "==" ... "eq" ... "<=" ... "le" ... ">=" ... "ge" ... "!=" ... "ne" ... ")" ... "[" ... "+" ... "-" ... "*" ... "/" ... "div" ... "%" ... "mod" ... "and" ... "&&;&&;" ... "or" ... "||" ... - el syntax error - encountered "(" @ line 1, column 86. expecting 1 of: "." ... ">" ... "gt" ... "<" ... "lt" ... "==" ... "eq" ... "<=" ... "le" ... ">=" ... "ge" ... "!=" ... "ne" ... ")" ... "[" ... "+" ... "-" ... "*" ... "/" ... "div" ... "%" ... "mod" ... "and" ... "&&;&&;" ... "or" ... "||" ...
in jsp el, ==
(or !=
) used compare strings, not .equals()
:
${(fn:length(updatestock.todaydimensionstones) == i.count) && (dimensionstones.status != 'new' || dimensionstones.isinspected != 'no')}
afair, latest version of jsp el allows calling methods, ide out of date , doesn't expect it. eclipse well-known signalling errors not errors @ all. trust app server.
Comments
Post a Comment