aspose file tools*
The moose likes Struts and the fly likes Help with logic:equal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help with logic:equal" Watch "Help with logic:equal" New topic
Author

Help with logic:equal

Nina Milo
Greenhorn

Joined: Jul 29, 2008
Posts: 19
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with logic:equal