File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with logic:equal

 
Nina Milo
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to use <logic:iterate> tag to retreive values and keys from HashMap. Using 2 different HashMaps for display and below are declarations.
1) HashMap1 ----- HashMap<Integer , ArrayList >
2) HashMap2 ----- HashMap<Integer , HashMap >


I have to iterate and fetch the key from HashMap1 and check against to the Key from HashMap2 . If both keys are equal then i have to perform some functionality.
Its been successful iterating the hashmaps but i have a problem checking both the keys for equal condition. Not sure what iam doing wrong in the code when checking for equal. It never
executes. Is this the right way to check for keys. Please help with this.

Thanks.

code snippet
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic