Try this for JSP:
<ww:iterator value="states"> key=<ww:property value="key"/>, value=<ww:property value="value"/><br> </ww:iterator>
or for Velocity:
#foreach ($entry in $states.entrySet()) key= $entry.key, value=$entry.value<br> #end
To iterate over the error map in a JSP:
<ww:iterator value="errors"> key=<ww:property value="key"/>, value=<ww:property value="value"/><br> </ww:iterator>
Using Velocity :
#foreach( $entry in yourMap.entrySet() ) key=$entry.key, value:$entry.value<br> #end
I couldnt find this relation of errorMap to errors but if you want to iterate through the errorMap in a jsp you can do it as such:
At first I was confused because I kept trying to access the property with the value "errorMap" but luckily a good search found this http://frost.infara.net/archives/2002/11/29/ blog entry where I realized that errorMap was accessed as "errors"
Using Velocity :
#foreach( $entry in yourMap.entrySet() ) key=$entry.key, value:$entry.value<br> #end