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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help with logic:equal" Watch "Help with logic:equal" New topic

Help with logic:equal

Nina Milo

Joined: Jul 29, 2008
Posts: 19
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.


code snippet
I agree. Here's the link:
subject: Help with logic:equal
Similar Threads
Using JSTL and Struts
logic:match , logic:notEqual not working
Hashtable and iterate
Iterate Hashmap through struts
JSTL conversion for struts 1.1 code