Hi, If you are using logic equal , you should also use logic not equal. Regards, Nagesh
-----Original Message----- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:08 PM To: Struts Users Mailing List Subject: Re: Basic <Logic:iterate question Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I feel has some mismatch. hope this info helps..... On 5/11/06, josh t <[EMAIL PROTECTED]> wrote: > > 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 > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]