<% for( int i = 0 ; i < arraylist.size() ; i++ ) { %>
<option value="<%= arraylist.get( i ).toString() %>" <% // add the condition to check if this entry is the selected one%> SELECTED = "SELECTED" > <%= arraylist.get( i ).toString() %> </option>
<% } %>
Can you smell this for me? I think this tiny ad smells like blueberry pie!