How can I generate I dropDown List with a HashMap getting the key(HashMap) how 
value(HTML) and the value(HashMap) how name(HTML)

With this HashMap:

    HashMap map = new HashMap();
    map.put("1","test1");
    map.put("2","test2");
    map.put("3","test3");
    map.put("4","test4");

And I want this output

<select name="teste">
<option value="1">teste1</option>
<option value="2">teste2</option>
<option value="3">teste3</option>
<option value="4">teste4</option>
</select>

Reply via email to