J Gotsch wrote: > I guess my problem is larger than using an if/else statement.
This much is certainly true ;) > I figured how to do that, but I'm iterating over a List in the JSP, and want > to be able to exit the loop whenever certain item exist. I don't suppose > there's a way to do that, is there? > > My requirement in a nutshell: the List could have role1, role2, and role3. > But I can only print one role on the screen. If the list has multiple roles, > then my loop will show all of them. I want to be able to exit the loop after > I find the role that I'm looking for. > If you can only have one role on the screen why are you iterating at all? Just use a sequence of if-thens, preferably using JSTL <c:choose...> thingies. Do you have an extensible list of possible roles?! If so I would consider using a different mechanism than this; it will only lead to tears. Perhaps an inclusion of a separate page, the name of which is built using a known string concatenated with the role, etc. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]