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....



Hi........I need to create a dropdown box using java.....this box should show the values that shoul..

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

Post New Answer

More JDBC Interview Questions

Which type of driver provides jdbc access via one or more odbc drivers?

0 Answers  


what are the advantages of JDBC?

7 Answers  


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 ?

0 Answers  


What are the different types of locking in JDBC?

0 Answers  


What is the return type of execute, executequery and executeupdate?

0 Answers  


How can you sort dates?

1 Answers  


Explain some new features available in jdbc 4.0?

0 Answers  


What are the exceptions in jdbc?

0 Answers  


Which package contains jdbc api?

0 Answers  


Why resultset is used in java?

0 Answers  


What is preparedstatement in jdbc?

0 Answers  


what is CallableStatement and what is its usage?

1 Answers  


Categories