I'm trying the following code in my .jsp file:
<select>
<%DBHandler db= new DBHandler();%>
<%db.init();%>
<%String[] res= db.getExpertise();%>
<% for(int i=0;i< res.length;i++){ %>
<option value="<%=res[i]%>"><%=res[i]%></option>
<%}%>
</select>
But, I don't know how to assign value in a tag using a variable in java code.