This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with logic:equal
 
Similar Threads
Using JSTL and Struts
Iterate Hashmap through struts
JSTL conversion for struts 1.1 code
logic:match , logic:notEqual not working
Hashtable and iterate