%{}
should be put (if necessary) around all the statement, not in the middle.
For Strings you should use .equals
, .equalsIgnoreCase
, .contains
, .indexOf
etc... Not ==
.
Change to this:
<s:iterator value="themes" status="currentRecord">
<s:if test="%{#session.usertheme.equalsIgnoreCase(themeName)}">
<td align="center" bgcolor="red">
</s:if>
<s:else>
<td align="center" bgcolor="yellow">
</s:else>
....
this works too:
<s:if test="#session.usertheme.equalsIgnoreCase(themeName)">