On 3/3/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: I have the following: > - An ArrayList<LabelValueBean> in the ServletContext called > "timezones" > > - A Form Bean in the request scope called "accountProfileForm" > > I want to be able to loop through the values in the "timezones" > attribute and compate the "value" to the value of the "timeZone" in the > "accountProfileForm". Here is what I am trying:
It looks like a Map would be a better choice than an ArrayList<LabelValueBean>. Can you change it? Then you could just use [untested] <c:out value="${timeZones[accountProfileForm.timeZone]}"/> -- Wendy