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

What are the three basic components of the odbc architecture?

470


Explain how data flows from view to db and reverse

1635


What is the jdbc rowset?

546


What is the execute method in java?

547


Does jdbc use ssl?

500






What is xe in oracle jdbc url?

544


What are JDBC Best Practices?

555


What is odbc. how is it related to sql cli?

603


What is jdbc and jpa?

519


How to set the attribute concurrency in resultset?

506


What is the return type of class.forname() method?

548


Why do we use jdbc in java?

548


What does jdbc do?

531


What is the function of setautocommit?

652


Explain what should be done when a SQL exception is raised?

554