Hi listers

I am using the Select tag

I have created a list of states

I put them into the hashmap but when they come out on screen they are not
ordered the way that I want them.

               <% HashMap states = new HashMap(); %>
               <% states.put("---", "---"); %>
               <% states.put("AL Alabama"              , "AL"); %>
               <% states.put("AK Alaska"               , "AK"); %>
               <% states.put("AS American Samoa"       , "AS"); %>
               <% states.put("AR Arkansas"             , "AR"); %>
               <% states.put("CA California"           , "CA"); %>
               <% states.put("CZ Canal Zone"           , "CZ"); %>
               <% states.put("CO Colorado"             , "CO"); %>
               <% states.put("CT Connecticut"          , "CT"); %>
               <% states.put("DE Delaware"             , "DE"); %>
               <% states.put("DC District of Columbia" , "DC"); %>
               <% states.put("FL Florida"              , "FL"); %>
               <% states.put("GA Georgia"              , "GA"); %>
               <% states.put("GU Guam"                 , "GU"); %>
                yada yada yada ...
<!-- -->       <input:select name="<%=RequestParam.CARD_STATE%>"
options="<%= states %>" default="---" />

Is there not a method of sorting these to the way they were entered?

Michael Holly
[EMAIL PROTECTED]
Consultant
Talisen Technologies
314.336.4426



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to