ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  JDBC
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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....
 Question Submitted By :: Sajukannan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    2 Yes 0 No
Ketan
 

 
 
 
Other JDBC Interview Questions
 
  Question Asked @ Answers
 
How to find that, a row is updated or not?  2
what exactly happens when we execute "Class.forname("Driver class name");"?Explain indetail Trigent10
signature of init method?  2
How to find total column from a resultset? tsys5
what is rowset? Marlabs3
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....  1
How can you tune SQL statements? Wipro2
How many isolation levels are supported in JDBC and what are they?  1
how can we get the metaData (columnNames) from a table which has no Records..  2
Which Driver is preferable for using JDBC API in Applets?  1
What is Type-1 Driver and when this driver is used?  3
what is connection pooling? Wipro6
callable is interface or class ? Fidelity8
what is meant by connection pooling?  3
dear friends I have made connection with SQLSERVER where the following code is compiling properly but giving error at the runtime . I think error in this line where i am sending the value through string Connection connection = DriverManager.getConnection ( "jdbc:microsoft:sqlserver://localhost:1433","sa",""); import java.sql.*; //import mssqlserver.*; public class TestSQLCON { public TestSQLCON() throws Exception { // Get connection DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver()); System.out.println(); System.out.println("Successfully connected one"); System.out.println(); Connection connection = DriverManager.getConnection ( "jdbc:microsoft:sqlserver://localhost:1433","sa",""); if (connection != null) { System.out.println(); System.out.println("Successfully connected"); System.out.println(); // Meta data DatabaseMetaData meta = connection.getMetaData(); System.out.println("\nDriver Information"); System.out.println("Driver Name: " + meta.getDriverName()); System.out.println("Driver Version: " + meta.getDriverVersion()); System.out.println("\nDatabase Information "); System.out.println("Database Name: " + meta.getDatabaseProductName()); System.out.println("Database Version: "+ meta.getDatabaseProductVersion()); } } public static void main (String args[]) throws Exception { TestSQLCON test = new TestSQLCON(); } } so please help me  1
If iam using JDBC API, do I also have to use ODBC?  1
how do we get the connection from connection pool  1
wahts is mean by primary key and unique key? Wipro7
JDBC Drivers properties? Infosys1
write down exceptions those appear in java programs when u write JDBC Programs?  2
 
For more JDBC Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com