Re: HashMap with String as key

2019-03-14 Thread Prasanth
Sorry if I caused any confusion. This thread was meant to discuss String keys.  I do have forms where I am using numeric keys and they work fine. I think I found a solution to my problem. Struts seems to expect single quotes for the keys when the key is string. Updated code is shown below. Also

Re: HashMap with String as key

2019-03-14 Thread Lukasz Lenart
czw., 14 mar 2019 o 20:11 Prasanth napisał(a): > If there a setting for struts that need to be changed to allow non numeric > keys? Nothing like that, but I suggest to start over because you first reported that you want to have a numeric key and now you say you don't. So maybe start a new topic

Re: HashMap with String as key

2019-03-14 Thread Prasanth
The text field is also correctly populated based on the values in the hashmap (populated from database before showing the form). So the filed is correctly linked to the hashmap. I have even tried using an alphabet as a separator but that doesn't work either. But if I remove the hyphen