[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

wml & jsp

I would like to make a select element
with a dynamic number of options elements,
in other word, the number of options depent, for instance,
from the number of string stored in an array of string ...

I tried to do in the following way, but the compilation
went wrong

<% String  str[] = {"aaa","bbb","ccc","ddd"} %>
<select name="my_select" >

    <% for(i=0;  i< 5;  i++)  {  %>
        <option value="" > <%= str[i] %> </option>
    <% } %>


How can do that ??

thanks a lot in advance
Best Regard

Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com