leesyy 0 Newbie Poster

hi, i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database.

i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database.

in aptana, i am using js file and html file, i'm able to connect to the servlet to retrieve and process the data (split the data) into an array and display the retrieved value (array) on screen. but now i need to put the retrieved value (array) into the selection menu and selection list for selection, how could i do that?
basically all the codes or in the .js file, the html file is only to link the different .js file and .css file to display in it.

for the drop down list, i cannot define the list, it need to be able to read from the servlet as the database is updated, it need to reflect.

sorry if my question s unclear, but i urgently need help.

Millions thanks in advance =)