tags:

views:

44

answers:

1

Hi,

I am having ArrayList in DAO class contains all cutomer name details. In a JSP page I am using session scope like below:

  <c:set var="CustomerData" 
        value="${ItemDataResponse.dataItemsList[1]}" scope="session"/>

How to display all customer names in a drop down menu in my JSP? How to access ArrayList in my JSP? (tags like JSTL, html I want to use to diplay the data)

Thanks for your help in advance.

+2  A: 

Tune something like this:

<select name="xxx">
    <c:forEach items="${CustomerData}" var="customer">
    <option>${customer}</option>
    </c:forEach>
</select>
Guido
@Guido ... Thanks for your effort its working fine
Manu
@Guido... if i click anyone of the drop down menu data, the whole page should get refersh.What should i do for this?
Manu