Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How to get the Database server details in java program?

0 Answers  


r u used any design patterns in your project?

3 Answers   Wipro,


What is the jdbc rowset?

0 Answers  


How can you use preparedstatement in jdbc?

0 Answers  


What does executequery return in java?

0 Answers  


What is CLOB and BLOB datatypes in JDBC?

0 Answers  


List the common jdbc exceptions ?

0 Answers  


Why do we use jdbc?

0 Answers  


What is the JDBC?

0 Answers  


Is jdbc a middleware?

0 Answers  


Explain different types of locks in jdbc?

0 Answers  


When do we get java.sql.SQLException: No suitable driver found?

0 Answers  


Categories