This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes c:if tag not working as expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "c:if tag not working as expected" Watch "c:if tag not working as expected" New topic

c:if tag not working as expected

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238

I have following code in my jsp

<bean efine id="sessionObj" name="mbzSessionForm" property="mbzSession" type="com.r911.core.model.MbzSession" />

<c:if test="${sessionObj.mbzStatus.sessionStatusId == 1}" >
value="<bean:message key=""/>" /> </c:if>

Can someone please tell me what is wrong with this code. I value exists because it works if I use staruts logic:equal tag. I want to use c:if because I want to check for multiple values which cannot be done using struts logic:equal tag which compares only one value at a time.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: c:if tag not working as expected
jQuery in Action, 3rd edition