Hi........I need to create a dropdown box using
java.....this box should show the values that should be
taken from the database......
Thank you....
Answer / ketan
That is very basic question when one new face comes into
development side...
we have <select> tag in jsp and it's <option> tag for no of
options.
steps
1.get all string data in array or arraylist or any iterator
from data base..
2.write select tag in jsp(php/asp) page.
3.make one loop inside it. of array's length or size.
4. in between option tag's value as array's elements..
| Is This Answer Correct ? | 3 Yes | 0 No |
What is in terms of jdbc a datasource?
What is the query used to display all tables names in SQL Server (Query analyzer)?
commit() and rollback() methods are defined in which interface?
What does adapter class provide?
Difference between servlet and applet method?
What is 2 phase commit?
How to store images in database?
What is the full form of jdbc and what is its purpose?
Which type of driver is unique in jdbc?
If you are given a choice to implement the code to either insert a record or update if already exist, which approach will you follow ?
Explain jdbc savepoint?
how to prevent finally block from execution