I have two select boxes in a jsp displaying a large vector, one at the top of the page, one at the bottom. I use the same vector and its size in a for loop to create select options. Using the exact same code in both the first loop makes it thru the list and creates the option box, but the second one stops displaying any html at about 170 in the loop. Heres the code:
<select name=country>
<option value="NONE">- SELECT COUNTRY -</option>
<%
Vector allCountries = GlobalDataSets.getCountries();
int acSize = allCountries.size();
for (int i = 0; i < acSize; i++)
{
%>
<option value="<%= allCountries.elementAt(i) %>"><%=
allCountries.elementAt(i) %></option><%
}
%> </font>
</select>Any ideas as to what is causing my html to come back and just stop with no errors in the logs at all?
Thanks, Brian
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
