Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2008, 08:00 PM   PM User | #1
shaoen01
New Coder

 
Join Date: Aug 2005
Posts: 63
Thanks: 1
Thanked 0 Times in 0 Posts
shaoen01 is an unknown quantity at this point
Add new values to HashMap?

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
shaoen01 is offline   Reply With Quote
Old 10-03-2008, 06:15 PM   PM User | #2
Aradon
Moderator-san


 
Aradon's Avatar
 
Join Date: Jun 2005
Location: USA
Posts: 734
Thanks: 0
Thanked 20 Times in 19 Posts
Aradon is on a distinguished road
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.
__________________
"To iterate is human, to recurse divine." -L. Peter Deutsch
Aradon is offline   Reply With Quote
Old 10-03-2008, 06:23 PM   PM User | #3
shaoen01
New Coder

 
Join Date: Aug 2005
Posts: 63
Thanks: 1
Thanked 0 Times in 0 Posts
shaoen01 is an unknown quantity at this point
Thanks! I have managed to solve my problem due to the unique keyset issue.
shaoen01 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:15 AM.


Advertisement
Log in to turn off these ads.