Unable to use c:when or c:if tag

I wanted to use style classes based on a particular condition. So, i used jstl tags. When i use <c:if>, that particular code is not only executed. If iam checking using <c:when>, always <c:otherwise> gets executed. Can anyone pls, help me out to solve this problem
[289 byte] By [Sanrina] at [2007-11-26 15:34:13]
# 1
You can use conditions in EL. Basic example with an int value:<h:outputText styleClass="#{myBean.intValue == 1 ? 'style1' : 'style2'}" />
BalusCa at 2007-7-8 21:51:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...