how to find a value in a list

2004-03-23 Thread sean jones
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

RE: how to find a value in a list

2004-03-23 Thread Pady Srinivasan
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,

Re: how to find a value in a list

2004-03-23 Thread sean jones
Pady Srinivasan Pady.Srinivasan at Heroix.com writes: 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 thanks, but this is about what i have now