Hi, I'm using Tomcat 6.0.26 with JSTL 1.2.
I'm trying to write a conditional statement, but having trouble figuring out the right syntax. Here is what I have ...
<div class="card_holder" style="width:${empty searchResultObjects ? '100%' : fn:length(searchResultObjects)*254 . 'px'};margin-top:37px;">
And here is the error I get ...
Caused by: org.apache.el.parser.ParseException: Encountered " <STRING_LITERAL> "\'px\' "" at line 1, column 77.
Was expecting:
<IDENTIFIER> ...
Any ideas how to write the above expression properly? THanks, - Dave