JSTL PROBLEM

I got a Map name,category type.

according to category type i want to get seperate lists

lists1 - category type =mani

lists2-category type = ram

could you please give me the code for that i JSTL
LVL 9
Manikandan ThiagarajanSenior consultantAsked:
Who is Participating?
 
bon9itCommented:
You can print out your map using following code:
<c:forEach items=${yourMap} var="entry">
  ${entry.key}: <select name="">
  <c:forEeach items="${entry.value}" var="item">
    <option value="">${item}</option>
  </c:forEach>
</c:forEach>

Open in new window

0
 
Manikandan ThiagarajanSenior consultantAuthor Commented:
rrz

my hashmap contains

key                    value

Legal Entity        ArrayList1

physicallocation ArrayList2

using jstl i want to get the arraylist of legalentity and displayed in the combobox
using jstl i want to get the array list of physical location and displayed in the combo box

0
 
rrzCommented:
chaituu has posted good examples. You will have to tell us if one of them meets your needs.  
>displayed in the combobox  
As I asked in your other question;  
Are you talking HTML 5 or 4  ?   See
http://www.scriptol.com/html5/combobox.php 
Or are you talking about a simple <select> tag with <option>s  ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.