Re: HashMap with String as key

2019-03-18 Thread Lukasz Lenart
czw., 14 mar 2019 o 21:38 Prasanth napisał(a): > > 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

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
is not further Long. It's String. >>> >>> Regards. >>> >>>> -Original Message- >>>> From: Lukasz Lenart >>>> Sent: Tuesday, March 12, 2019 10:52 AM >>>> To: Struts Users Mailing List >>>> Subject: Re: Hash

Re: HashMap with String as key

2019-03-13 Thread Prasanth
Original Message- >>> From: Lukasz Lenart >>> Sent: Tuesday, March 12, 2019 10:52 AM >>> To: Struts Users Mailing List >>> Subject: Re: HashMap with String as key >>> >>> pon., 11 mar 2019 o 18:41 Prasanth napisał(a): >>>>

Re: HashMap with String as key

2019-03-12 Thread Prasanth Pasala
gt;> From: Lukasz Lenart >> Sent: Tuesday, March 12, 2019 10:52 AM >> To: Struts Users Mailing List >> Subject: Re: HashMap with String as key >> >> pon., 11 mar 2019 o 18:41 Prasanth napisał(a): >>> When you have a HashMap backed form and String as key, are th

RE: HashMap with String as key

2019-03-12 Thread Yasser Zamani
(regarding your previous emails background) Please also consider that the key 2432-123 is not further Long. It's String. Regards. >-Original Message- >From: Lukasz Lenart >Sent: Tuesday, March 12, 2019 10:52 AM >To: Struts Users Mailing List >Subject: Re: HashMap wit

Re: HashMap with String as key

2019-03-12 Thread Lukasz Lenart
pon., 11 mar 2019 o 18:41 Prasanth napisał(a): > When you have a HashMap backed form and String as key, are there any > restrictions on the characters allowed? > > I have keys like "2432-123" as I have to incorporate two ids in the key. When > I have these keys the HashMap is not getting

HashMap with String as key

2019-03-11 Thread Prasanth
Hi, When you have a HashMap backed form and String as key, are there any restrictions on the characters allowed? I have keys like "2432-123" as I have to incorporate two ids in the key. When I have these keys the HashMap is not getting populated. If I change it, so that there is only one id