struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
Subject Re: Logic Tag Question
Date Fri, 03 Mar 2006 20:38:34 GMT
On 3/3/06, Kalcevich, Daniel <dkalcevich@firstam.com> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message