Nitesh wrote:
You are probably looking for...
<logic:equal name="orderObj" property="statusCode" value="<%=
OrderObj.getWhatever() %>">
Unfortunately, that gives:
cannot find symbol
symbol : method getOrderStatus()
location: class java.lang.Object
_jspx_th_logic_equal_0.setValue( orderObj.getOrderStatus() );
I can see a good value for orderObj.orderStatus in the debugger. I tried
value="<%= orderObj.orderStatus%>" with the same results.
It seems that there is a different scope between tags and scriplets?
Nitesh
----- Original Message ----- From: "Brad Rhoads" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, June 22, 2005 7:25 PM
Subject: Re: Setting value at runtime in logic:equal
Nitesh wrote:
You could use <logic:equal name="orderObj" property="statusCode"
value="<%= val %>">
where you can set val depending on any conditions, input at runtime!
That's exactly what I *want* to do. orderObj is a collection that I'm
iterating through. How do I get val to come from the "current"
iteration?
HTH
Nitesh
----- Original Message ----- From: "Brad Rhoads" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, June 21, 2005 11:08 PM
Subject: Setting value at runtime in logic:equal
How do I test statusCode for some other property in my orderObj,
instead of hard coding "On Hold" as I'm doing now?
<logic:iterate id='orderObj' collection='<%=
request.getAttribute("orders") %>'>
<tr class=lstLine1>
<td>
<logic:equal name="orderObj" property="statusCode"
value="On Hold">
<html:multibox property='selectedOrders'
disabled="false">
<bean:write name="orderObj"
property="orderID" filter="true"/>-<bean:write name="orderObj"
property="shipID" filter="true"/>
</html:multibox>
</logic:equal>
</td>
</tr>
</logic:iterate>
Thanks for the help.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]