Hi,
  If ur using HashMap there is no guarantee that they pop out in the same 
order in which u have pushed(placed/inserted). So better go for a 
LinkedHashMap. LinkedHashMap preserves the order that u have placed.
 Khan


On 6/28/05, Dave Newton <[EMAIL PROTECTED]> wrote: 
> 
> Goswami, Raj wrote:
> 
> >I had the same problem. Thanks for your answer. How do I provide a the 
> key name though? For e.g. suppose I have a map with key names as 
> employeeId, employeeLastName, employeeFirstName etc. and I want to print it 
> by calling the individual key names, not just arbitrarily any key as I might 
> lose the order in that case.
> >
> >
> I think the DynaActionForm/etc. uses HashMap so there's no guaranteed
> order anyway. I'm not sure why you want to do any of this anyway, bu if
> you're using it for anything other than debugging purposes you'll
> probably want to explore different options.
> 
> Dave
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to