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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which type of driver is unique in jdbc?

567


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

661


How will you perform truncation using JDBC?

656


Explain about multiple implementations and drive manager?

656


What is drivermanager in java?

567






How does jdbc connect to database?

556


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

600


How can I determine the isolation levels supported by my DBMS?

601


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

623


What is statement and preparedstatement in java?

570


What is the jdbc rowset?

631


Which is better odbc or jdbc?

581


List the advantages of using datasource?

642


What is database connection pooling? Advantages of using a connection pool?

624


What class.forname will do while loading drivers of jdbc?

577