| Author |
Inserting values from a datastore into a drop down list
|
Kamal Patel
Greenhorn
Joined: Nov 05, 2003
Posts: 18
|
|
Hi, I was wondering if anyone knows how to, or has an example of generating vales i.e. names, that are extracted from a datastore, into a combo or drop down list on a JSP/web page? Do I have to use Javascript, or can I just use HTML and java? Thanks.
|
 |
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
Hi, Just java and html is fine. Do something like this : <SELECT tag <% do your loop here to get each value %> <option value="<%=value from loop%>"> <%=value to display%></option> <% end of the loop %> End of Select tag> Rob
|
 |
 |
|
|
subject: Inserting values from a datastore into a drop down list
|
|
|