Hi there 

As my best knowledge your <logic:equal tag is wrong it requir "value" 
And <logic:equal dosenot support to comparison of strings it only
supports for either int or boolean

-----Original Message-----
From: josh t [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 7:41 AM
To: user@struts.apache.org
Subject: Basic <Logic:iterate question 

Greetings everyone:
   
  Objective: Retrieve an object from the session that contains a
Collection of String for userRoles.  Iterate through userRoles, and if
one of the roles equals "SUPER" include a href.
   
   
  So this is what I have, but doesn't seem to be correct:
   
  ............................................................
   
  <logic:iterate id="role" 
     name="<%=LookupConstants.SESSION_OBJECT%>"    
     property="userRoles" scope="session"> 
   
              <logic:equal name="role" property="SUPER"> 
          <a href="test.do" class="BodyLink"><b>test</b></a><br />
        </logic:equal>
  </logic:iterate> 
   
  .............................
   
  Note: I can get the session value just fine, when i do the following:
  <bean:write name="<%=LookupConstants.SESSION_OBJECT%>" property="role"
scope="session" />
  Can you please let me know what I'm doing wrong within the iterte
block? 

                
---------------------------------
Get amazing travel prices for air and hotel in one click on Yahoo!
FareChase 

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

Reply via email to