PDA

View Full Version : Add new values to HashMap?


shaoen01
10-02-2008, 09:00 PM
Hi all,

I am just wondering if anyone has encountered adding a new item to a HashMap? If for example i previously added 2 items to HashMap HM1, when i try to execute HM1.put(abc,123) to appended, it can't work. All of these are done in the same page but in different function calls. However, i managed to get the old value of HM1 via a session. So that's no issue here in terms of retrieving the HM1 from the session. Any thoughts? Thanks

Aradon
10-03-2008, 07:15 PM
You would need to post your code in order for us to look at what you're doing and what you may be doing wrong.

Please show us, at the least, the instantiation of the HashMap and the use of it there-of.

shaoen01
10-03-2008, 07:23 PM
Thanks! I have managed to solve my problem due to the unique keyset issue.