On Fri, 2003-03-28 at 12:20, apachep2 wrote:
> Sorry, not bean:define, you might have to use struts-el or JSTL.

No, you had it right the first time (almost).

try this...

 <logic:iterate id="currency" collection="<%=hashData.get("currency")%>">
   <bean:define id="currency_code" 
              name="currency" 
          property="code"/>

   <logic:equal name="instrument" 
            property="currency" 
               value="<%=currency_code%>">
        ...
   </logic:equal>
        ...
 </logic:iterate>



> 
> -----Original Message-----
> From: Eugene Volynskiy [mailto:[EMAIL PROTECTED] 
> Sent: March 28, 2003 10:49 AM
> To: 'Struts Users Mailing List'
> Subject: RE: question about <logic:equal>
> 
> Could you please provide me with more details:
> 
> if I define variable with <bean:define id="x" value="SELECTED"/>
> Do we have any other way to call this "x" except <bean:write name="x"/>
> ?
> 
> Thank you
> 
> -----Original Message-----
> From: apachep2 [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 10:42 AM
> To: 'Struts Users Mailing List'
> Subject: RE: question about <logic:equal>
> 
> 
> Can we embed struts tag inside struts tag? No. So try struts-el or
> bean:define
> 
> -----Original Message-----
> From: Eugene Volynskiy [mailto:[EMAIL PROTECTED] 
> Sent: March 28, 2003 10:10 AM
> To: 'Struts Users Mailing List'
> Subject: question about <logic:equal>
> 
> Hi,
> 
> I have question about usage <logic:equal> inside <logic:iterate>. I am
> trying to do the following:
> ...
>                <logic:iterate id="currency"
> collection="<%=hashData.get("currency")%>">
>                  <logic:equal name="instrument" property="currency"
> value='<bean:write name="currency" property="code"/>'>
>                       ...
>                  </logic:equal>
>                ...
>               </logic:iterate>
> ...
> 
> I definitely have value in <bean:write name="currency"
> property="code"/>,
> but <logic:equal> refuses to work when "value" there is set with
> <bean:write>, however it works fine if ve have some constant or jsp
> variable
> there, but I need it to be work with value from the loop presented by
> <logic:iterate>. 
> Your suggestions will be deeply appreciated.
> 
> Thanks,
> 
> Eugene
> 
> 
> ---------------------------------------------------------------------
> 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]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to