(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 <lukaszlen...@apache.org> >Sent: Tuesday, March 12, 2019 10:52 AM >To: Struts Users Mailing List <user@struts.apache.org> >Subject: Re: HashMap with String as key > >pon., 11 mar 2019 o 18:41 Prasanth <dbad...@pangburngroup.com> 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 populated. If I change >it, so that there is only one id (no hyphen) then the data is getting posted as >expected. > >I assume it's because of the "-" (minus) sign, and OGNL performs an evaluation >or >something. Could you check if you have key 2309 in your map as a result of >distraction operation (2432-123 = 2309)? > > >Regards >-- >Łukasz >+ 48 606 323 122 http://www.lenart.org.pl/ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >For additional commands, e-mail: user-h...@struts.apache.org