Accessing a key in a java map.
"Lukas, Ray" <[email protected]>
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <3C44577B6A488943B56C1753A569EACA2528F1E4@US-BOS-VEX002.eu.pxl.int> |
I have created a java.util.HashMap<String, TressSet<MyJavaObject>> and have placed that into the $values map which I then pass into Velocity. The name of a group of things mapped to a sorted set of those things. I have no problem iterating through the map but I cannot seem to find a way to access the key (the String) of the map.entry and overlay that into my form. How is this done. I want to print out the name of the group and then the group. Common thing to do I would think.. #foreach($LabTestTypeEntrySet in $values.TestTypeGroupedBySpecimenName.keySet()) $LabTestTypeEntrySet.??? - what goes here ---?? #foreach($LabTestType in $values.TestTypeGroupedBySpecimenName.get($LabTestTypeEntrySet) ) $LabTestType.labTestTypeCode #end #end I am kind of new to Velocity and have been hunting for the solution.. can someone help me out real quick. Thanks guys..