struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: HashMap with String as key
Date Tue, 12 Mar 2019 07:21:54 GMT
pon., 11 mar 2019 o 18:41 Prasanth <dbadmin@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message