i want to populate combobox in my jsp using another jsp. i already try many thing but those doesn't work for me
jsp design code
<form id="obj" class="login-form" action="PickUpInvertProcess.jsp">
<table>
<tr>
<td class="td1">Client:</td>
<td class="td2"><select tabindex="1"name="clientname">
<c :forEach var="name" items="${obj.name}">
<option value="${name}">${name}</option>
</c :forEach>
</select>
</td>
using script in jsp to load comboBox value
<body>
<%!
public Set<String> loadDropDown() throws SQLException {
Set<String> CLIENTDATA = new HashSet<String>();
Dbcon dbc = new Dbcon();
Connection con = dbc.ConnDb();
Statement st = null;
ResultSet rs = null;
try {
String Query = "here query";
st = con.createStatement();
rs = st.executeQuery(Query);
while(rs.next()){
CLIENTDATA.add(rs.getString("name"));
}
} catch (Exception e) {
} finally{
dbc.disconnect(null, st, rs, null);
}
return CLIENTDATA;
}
%>