User Profile
Collapse
-
i have understood the steps aftr 'creating statement' -
well i read your doc n it ws very useful just wanted to ask u one thing ....
'public static void viewTable(Conne ction con, String dbName)
throws SQLException ' in ur doc is the connection class ???Leave a comment:
-
actually i am a little short on time ...so if u can give the correct code using my class to fetch a 'select * from dir_s' statement...it would be really helpful ... actually I am bit new to java and jsps.Leave a comment:
-
-
it is now working .... now can u helo me in writing the code for using the connection class (xyz) to fetch querry results from database???Leave a comment:
-
i think the connection is not established ..then i made class where i tried to establish a connection to database nly....it is getting compiled properly but not able to run...
the code :
Code:import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Properties; public class xyz { public static void main(String[] args)
Last edited by Rabbit; Apr 5 '13, 04:07 PM. Reason: Please use code tags when posting code. Second warning.Leave a comment:
-
Code:import java.sql.*; 2 3 4 5 public class Connect { 6 7 public static void main(String argv[]) throws Exception { 8 9 // Initialize variables. 10 Connection con = null; 11 12 try { 13 14 // Set the connection URL. 15 String url = "jdbc:postgresql://localhost:5432/source_db";
Leave a comment:
-
hey thanx for the idea but can write the codes for it .. i hav been getting a lot of errors ...wil b very helpfulLeave a comment:
-
Jsp connection to postgresql database
I am doing a project where i need to use a jsp to connect to a postgresql database and then show the results of a querry in the jsp. please can any1telme the steps and the jsp code ...thanks
No activity results to display
Show More
Leave a comment: