struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: Setting value at runtime in logic:equal
Date Tue, 21 Jun 2005 17:55:26 GMT
From: "Brad Rhoads" <brhoads@zethcon.com>
> How do I test statusCode for some other property in my orderObj, instead
> of hard coding "On Hold" as I'm doing now?
>
>  <logic:equal name="orderObj" property="statusCode"  value="On Hold">

Here's one option...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:if test="${orderObj.statusCode eq orderObj.otherProperty} >  ...  </c:if>

What JSP version are you using?

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message