Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

My problem is i am dispplaying the jsp page which contains the month as drop down button there i can select the month and click on search.The resulting page should display the pie chart and bar chart for the particular selected month data.Here the problem is it is taking the same hash code for all the months so the bar chart and pie chart remains same for all the months whatever i selected.

Can any one help me.Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 30-Aug-11 23:06pm    
Not clear. How this matter related to hash code? Why the chart is the same?
--SA
Nagy Vilmos 2-Sep-11 5:14am    
Code example?
Ashish Tyagi 40 5-Sep-11 1:14am    
Just tell us how you used the hash code?
komali Guntur 5-Sep-11 6:39am    
int hash=hashcode() and i am sending this generated hash code to the image url

1 solution

As a guess you have an object and you search for an image based on the hash code.
You must make sure that the image is stored with the same hash code as the other object. If you are not overriding the hash code then it will be the memory address in the heap, different for EVERY instance.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900