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

What is the difference between setmaxrows(int) and setfetchsize(int)?

0 Answers  


What is ojdbc14 jar?

0 Answers  


Explain the locking system in jdbc & its types?

0 Answers  


How many isolation levels are supported in JDBC and what are they?

1 Answers  


Explain about DSN?

0 Answers   Infosys,






How do I find whether a parameter exists in the request object?

0 Answers  


HI ALL, How to Overcome "OutOfMemoryException"? when I am compiling source having more than 1000 LOC throwing this exception. Can any one give correct answer to my question? thx

5 Answers  


Which type of JDBC driver is the fastest one?

0 Answers  


Can we return resultset in java?

0 Answers  


JDBC Drivers properties?

1 Answers   Infosys,


What is the use of the statement in jdbc?

0 Answers  


What is a datasource in java?

0 Answers  


Categories