He approached me for help after spending hours on the problem, when I looked into the code he was using
His code was looking like
<li<logic:equal name="xxx" value="0">class="on"</logic:equal>
adding a space before the logic:equal tag did the fix. HTML could be the simplest, sometimes the TOUGHEST. :-)