File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes database connectivity using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "database connectivity using java" Watch "database connectivity using java" New topic
Author

database connectivity using java

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
good evening to everyone,

i have been doing java program using JFrame to create registration page.. there are 7 fields such as name, username, password,address,city,dob and gender..

and one JButton object.. when i clicked it, these details should be saved in the database..


i used the following code but it gives me an error like that

error is java.sql.SQLException: Invalid Cursor Type: 1003



my code is




Thanks in advance
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
What does it say in the documentation for your database about that message and code 1003?
Bill Clar
Ranch Hand

Joined: Sep 21, 2006
Posts: 140

Check out what the Java API says about ResultSet.moveToInsertRow().
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1936
    
  28
By default ResultSets aren't updateable. You can request an updateable ResultSet when you create the statement object eg:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: database connectivity using java
 
Similar Threads
Can't Update Record ?
Display Problem in JTable
JTable display problem
problem with my jdbc/swing code
Can't Update Record ?