Assuming you can get a Collection of roles, using jstl, <c:forEach items="${requestScope.ROLES}" var="role"> <c:if test="${role.name == 'myRole'}"> Do something... </c:if> </c:forEach>
Thanks -- pady [EMAIL PROTECTED] -----Original Message----- From: sean jones [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 12:31 PM To: [EMAIL PROTECTED] Subject: how to find a value in a list I have a user object in the session The user object contains a List object that conatins an entry for each role the person has. User { private Roles r = new Roles(); user() {} (getters & setters).. } i have a Console.jsp (this is used to show items that need processing by the user). the preceeding action put a consoleUserData object in the request. for each role i have to iterate over the the consoleUserData object to build that section of the console page. <h1> data entry 1 </h1> <logic:iterate id="data" name="consoleData"> </logic:iterate> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]