Olá pessoal, estou com o seguinte problema:
Tenho um Hashtable setado na sessao:
Hashtable idiomaList = IdiomaBD.getInstance().selectALL();
session.setAttribute(“selectIdiomaBean”, idiomaList);
Estrutura do Hashtable(idiomaList) :
objectKey|object
“1”|VO
“2”|VO
“3”|VO
Tem como na tag logic:iterate colocar no value de um checbox o valor do objectKey do hashtable a cada interação?
E recuperar os valores dos VO na mesma interação?
Att.
Olha isso
[quote]Normally, each object exposed by the iterate tag is an element of the underlying collection you are iterating over. However, if you iterate over a Map, the exposed object is of type Map.Entry that has two properties:
key - The key under which this item is stored in the underlying Map.
value - The value that corresponds to this key.
So, if you wish to iterate over the values of a Hashtable, you would implement code like the following:
<logic:iterate id=“element” name=“myhashtable”>
Next element is <bean:write name=“element” property=“value”/>
</logic:iterate>[/quote]
eu encontrei no site da jakarta.
muito obrigado.
att.