hi, this is my code
<html:select property="singleSelect">
<html:option value="0">Select One </html:option>
<script type="text/javascript">
var nfhEvents =new Array();
<% ArrayList nfhList = simple.Reject();
String[] stringArray = (String[])nfhList.toArray(new String[nfhList.size()]);
System.out.println("Size "+stringArray.length);%>
var state = new Array(<%= stringArray %> );
for (int i = 0; (i < <%= stringArray.length%>); i++) {
document.write("<option value='"+state[i]+"'>" + <%= stringArray[i]%>+"test" +"</option>");
}
</script>
this is not working fine. how to print values one by one in the option. pls help asap
<html:select>