Thanks for fast reply

Thanks for fast reply

View Answers

July 1, 2008 at 7:54 PM

oh well... do not get confused with all that! these are very simple and easy to learn, so just follow the link given below

http://www.roseindia.net/jdbc/jdbc-steps.shtml

and this is the database connectivity code..

Connection con = null;
String url = "jdbc:mysql://localhost:3306/";;
String db = "jdbc";
String driver = "com.mysql.jdbc.Driver";
String user = "root";
String pass = "root";
try{
Class.forName(driver);
con = DriverManager.getConnection(url+db, user, pass);
Statement st = con.createStatement();
ResultSet res = st.executeQuery("SELECT * FROM employee");
while (res.next()) {
String employeeName = res.getString("employee_name");
System.out.println(employeeName );
}

}
catch (Exception e){
System.err.println("Could not load JDBC driver");
System.out.println("Exception: " + e);
e.printStackTrace();
}

Just read the tutorial completely, and u'll able to do it.

Good luck!!!!!!!!









Related Tutorials/Questions & Answers:
Thanks for fast reply - Java Beginners
Thanks for fast reply  Thanks for response I am already use html for data grid but i m noot understood how to connect to the data base, and how to fetch data from table in the data grid I am using mysql database package
fast Reply - Java Beginners
fast Reply  Hi Friend I want to passing value one page to another page without using session varible....please help me write the code and send me   Hi friend, For solving the problem visit to : http
Advertisements
goto statement problem. reply fast.
goto statement problem. reply fast.  I have done some operation, and want to repeat same operation again at users choice. but its not working properly. I am using goto statement. void main() { float rs, p; char z
please reply fast if anyone knows that how to install mysql on windows using msi package
please reply fast if anyone knows that how to install mysql on windows using msi package  please reply fast if anyone knows that how to install mysql..._TO_REPLACE_1 Thanks
Thanks
Thanks  This is my code.Also I need code for adding the information on the grid and the details must be inserted in the database. Thanks in advance
reply to the mail
reply to the mail  Hi! which jar file needed to be added? Thanks   Question not clearADS_TO_REPLACE_1
Thanks - Java Beginners
Thanks  Hi, Thanks for reply I m solve this problem   Hi ragini, Thanks for visiting roseindia.net site
Reply - JSP-Servlet
... Thanks for your fast reply.. Thanks/Regards, R.Ragavendran..  ... it? thanks and regards prashu
ModuleNotFoundError: No module named 'reply'
, ModuleNotFoundError: No module named 'reply' error will be solved. Thanks...ModuleNotFoundError: No module named 'reply'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'reply
reply must
reply must  is it critical to do a software job based on games(java) i know core java & advanced java basics only please give me answer
Reply Me - Java Beginners
=13c222b87273340cf002bfba4ab9d045. please reply me fast its urgent...Reply Me  Hi All, I want to using query string in my page please write the query string in java script and send me and I have a some link
reply
Plz chk it and reply again - Java Beginners
Plz chk it and reply again  Hi Deepak, Thanks for fast reply,your application is good,u write this code for user click the view database... fast reply.  Hi Ragini, Please specify your requirements
Reply me - Java Beginners
Reply me  Hi,   Hi Ragini please specify main problem. where are problem in your code. Thanks
Thanks - Java Beginners
Thanks  Hi Rajnikant, Thanks for reply..... I am... is the advantage of interface and what is the use of interface... Thanks... and analyze you got good scenario about Interface Thanks Rajanikant   Hi
Reply - Struts
Reply   Thanks For Nice responce Technologies::--JSP please write the code and send me....when click "add new button" then get the null value...? thanks
ModuleNotFoundError: No module named 'FAST'
, ModuleNotFoundError: No module named 'FAST' error will be solved. Thanks...ModuleNotFoundError: No module named 'FAST'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'FAST
Reply - Struts
/pages/HelloWorld.jsp Thanks vinod
thanks - JSP-Servlet
thanks   thanks sir i am getting an output...Once again thanks for help
ModuleNotFoundError: No module named 'no-thanks'
ModuleNotFoundError: No module named 'no-thanks'  Hi, My Python... 'no-thanks' How to remove the ModuleNotFoundError: No module named 'no-thanks' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'thanks'
ModuleNotFoundError: No module named 'thanks'  Hi, My Python... 'thanks' How to remove the ModuleNotFoundError: No module named 'thanks' error? Thanks   Hi, In your python environment you have
thanks - JSP-Servlet
thanks  thanks sir its working
Reply me - Java Beginners
Reply me  If u r not understood my just posted question plz let me know  Hi Ragini, Please specify your requirements in detail... explain about grid. Thanks Amardeep
Reply Me - Struts
Reply Me  Hi Friends, Please write the code using form element...because i got error in textbox null value  Hi Soniya Would you... to provide a better solution for you.. Thanks
Thanks to Amardeep - Java Beginners
Thanks to Amardeep  i don't know how to thank you Amar! i real thank for what you did' i mean what you did is really my pressure, thanks.... thanks Amardeep. 2hafeni
Thanks to Amardeep - Java Beginners
Thanks to Amardeep  i don't know how to thank you Amar! i real thank for what you did' i mean what you did is really my pressure, thanks.... thanks Amardeep. 2hafeni
Thanks - Java Beginners
Thanks  Hi, Yur msg box coding is good Thanks  Hi Thanks & Regards
Thanks - Java Beginners
Thanks  Hi, thanks This is good ok this is write code but i... either same page or other page. once again thanks    hai... the problem... state it correctly.... thanks and regards prashu
thanks - Development process
thanks  thanks for sending code for connecting jsp with mysql. I have completed j2se(servlet,jsp and struts). I didn't get job then i have learnt.... please help me. thanks in advance
Thanks - Java Beginners
Thanks  Thanks Deepak Thankyou so much this is good web application but i m clicking insert button then addform.jsp page is not open plz suggest me   hai friend I think u gave the url is not currect. Check
Thanks - Java Beginners
Thanks  Hi, Thanks ur sending url is correct..And fullfill requirement.. I want this.. I have two master table and form vendor... and send me... Thanks once again...for sending scjp link
Thanks - Java Beginners
Thanks  Hi, Thanks ur sending url is correct..And fullfill... and send me... Thanks once again...for sending scjp link  Hi friend... to visit : http://www.roseindia.net/ Thanks
reply me - Java Beginners
reply me  Hi, user enter vend_id in text box ten open the addform.jsp In the addform.jsp have two button Update and delete... immediately its very urgent Thanks & Regard
Reply Me - Struts
Reply Me  Hi Friends, I am new in struts please help me How to arrange the folder using oracle 10g database where store web.xml file,jsp... visit for more information. http://www.roseindia.net/struts/ Thanks
Reply Me - Java Beginners
Reply Me  Hi, This is not correct url please send me again coorect url
Reply me - Java Beginners
Reply me   Hi, I am using this code for session but i am... use Thanks   Hi friend, Give in details and also... Thanks
Reply Me - Java Beginners
Reply Me  Hi Amardeep I am sending database table name,code and db file please insert this data in this table its very urgent.... My.... http://www.roseindia.net/ Amardeep Thanks
Reply Me - Java Beginners
Reply Me   Hi I am sending some code please check it and solve this code is only insert into the data base please insert data in the database table and reply me fast...I got two error 1 is catch is without try 2 is try
Reply Me - Java Beginners
Reply Me  Hi deepak, your sending web application is good... Thanks Ragini   Hi Ragini Actually, you can not direct access...-search.shtml Thanks. Amardeep
Reply Me - Java Beginners
Reply Me  Hi, Please Help Me using jsp technologies I have a form click the link and open the popup window main page have already a html... specify the problem in details and give full code having the problem. Thanks
reply - Java Beginners
reply  Hi friends I have a 255 fields i want to insert data in the table please let me know how to insert data in the database please reply me its very urgent
Reply me - Java Beginners
Reply me  Hi Friends, Quest:- Tell em what is the difference between java and php, dotnet Quest:- what is the similar point of php and java... Please tell me its very urgent
Reply me soon.........
Reply me soon.........  Any body plzz help.....how to get d checked details from previous page to current page and den insert into table
Reply Me - Java Beginners
Reply Me  Hi, Details structure Using jsp code I m... on name plz send this code immediately Thanks   i have...... and check whether it meets ur needs? thanks and regards prashu
ModuleNotFoundError: No module named 'py-email_reply_parser'
: No module named 'py-email_reply_parser' How to remove the ModuleNotFoundError: No module named 'py-email_reply_parser' error? Thanks   Hi...ModuleNotFoundError: No module named 'py-email_reply_parser'  Hi
ModuleNotFoundError: No module named 'pywe-message-reply'
named 'pywe-message-reply' How to remove the ModuleNotFoundError: No module named 'pywe-message-reply' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'pywe-message-reply'  Hi, My
ModuleNotFoundError: No module named 'wagtail-contact-reply'
: No module named 'wagtail-contact-reply' How to remove the ModuleNotFoundError: No module named 'wagtail-contact-reply' error? Thanks   Hi...ModuleNotFoundError: No module named 'wagtail-contact-reply'  Hi
ModuleNotFoundError: No module named 'email_reply_parser'
named 'email_reply_parser' How to remove the ModuleNotFoundError: No module named 'email_reply_parser' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'email_reply_parser'  Hi, My
ModuleNotFoundError: No module named 'gs_reply_bot'
;gs_reply_bot' error? Thanks   Hi, In your python..._reply_bot' error will be solved. Thanks...ModuleNotFoundError: No module named 'gs_reply_bot'  Hi, My Python
Reply Me - Java Beginners
Reply Me  Hi,.. I have a some fields in one form like security and some more fields this fields maintain the table if user click security... question then reply me

Ads