Post a Job  |   Ask a Question?   |   Already registered? login or register
Ranjit Kumar
01/12/2016 09:50 PM

Can anyone help me what are the problem with code...


Spam    16 Comments

Hemanth,Kumar
01/12/2016 22:01:48

Hemanth,Kumar
01/12/2016 22:02:45
better to write 3 queries 3 statements with one querty it is not working

lucky,kanth
01/12/2016 22:13:09
Hey hemanth kumar, for that we have to create 3 resultset objects,memory waste.rohit kumar code is ok..

Narayana,Yasaram
01/12/2016 22:22:42
First let me know you write all the values in single table or in separate table if u write three tables for cities,states,countries then u will write three statements in that case and use three results for three statements that will work

Ranjit,Kumar
01/12/2016 22:31:18
Narayan, i am creating 3 tables tblcities, tblstate and tblcountry....

Ranjit,Kumar
01/12/2016 22:33:29

Mohan,Reddy
01/12/2016 22:38:25
create three different statements and three different resultset other wise u wil get wrong output or u will get exceptions

Ranjit,Kumar
01/12/2016 22:52:11
Thank you Mohan Reddy.... i got it

yasmin,sharma
01/12/2016 23:52:45
hello after creating 3 Statement obj ,3 ResultSet obj i am not able to query the record from database ..only the first while loop is executing..the rest are not.. please clarify

Ayush,Sahu
02/12/2016 00:06:26
can you share the screenshot what is the error

yasmin,sharma
02/12/2016 00:08:19
no error is coming ,just city values are populating and state and country are being left as null

Ayush,Sahu
02/12/2016 00:11:54

Ayush,Sahu
02/12/2016 00:19:18
clean your project once then try to check by printing otherwise check wether in database data is there or not

yasmin,sharma
02/12/2016 00:21:14
can u pls send ur servlet code ..

Ayush,Sahu
02/12/2016 00:27:52

yasmin,sharma
02/12/2016 01:18:35
Got it..after storing the data in the database i didn't commit that..so it was not reflecting.. Thank u..

Languages :
xml