struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chappell, Simon P" <Simon.Chapp...@landsend.com>
Subject RE: how to conditionate inside an iterate
Date Wed, 19 Jun 2002 21:31:31 GMT
James,

Nice example ... but how would I go about testing the equality of two different bean properties?

The situation that I am looking at is that I have two beans that I send to my JSP in an ActionForm.
The one bean holds all the non-repeating data and the other is actually a collection that
I iterate over and display the contents in a table. That part is working.

How do I compare a property on the first bean with a property on the second bean? This would
enable me to highlight the most recently changed line in the collection bean.

Simon

-----------------------------------------------------------------
Simon P. Chappell                     simon.chappell@landsend.com
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: James Mitchell [mailto:jmitchtx@telocity.com]
>Sent: Wednesday, June 19, 2002 4:27 PM
>To: Struts Users Mailing List
>Subject: RE: how to conditionate inside an iterate
>
>
>The same way you do it outside the iterate.
>
>See the docs or the struts-example......
>
>here's a snip:
>
><logic:iterate id="subscription" name="user" property="subscriptions">
>  <tr>
>    <td align="left">
>      <bean:write name="subscription" property="host" filter="true"/>
>    </td>
>...
>...
><!-- this is not in the struts-example, but you get the point -->
>      <logic:equal name="subscription" 
>                   property="host" 
>                   scope="request" 
>                   value="Test for value">
>
>      </logic:equal>
>...
>...
>    </td>
>  </tr>
></logic:iterate>
>
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://struts-atlanta.open-tools.org
>
>> -----Original Message-----
>> From: Emerson Cargnin - MSA [mailto:emersonc@sicredi.com.br]
>> Sent: Wednesday, June 19, 2002 5:06 PM
>> To: struts-user@jakarta.apache.org
>> Subject: how to conditionate inside an iterate
>> 
>> 
>> How i make a condition test inside an iterate  logic taglib with the 
>> bean of the iteration set????
>> 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>> <mailto:struts-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:struts-user-help@jakarta.apache.org>
>> 
>> 
>
>--
>To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


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


Mime
View raw message