How to insert data into database. Please help me(Struggling Very much)

Hi i am having a jsp page which contains some textfields and one button. I have a database table and i have added to my page. The first column of Database table is ID which is of NUMERIC type and it has been set into primary key. And rest of fields are CHAR type. I am using SQL Server 2000. I have to enter the data into text fields and when i submit the add button it must add to the database table. But i am getting error like

Exception Details: java.lang.IllegalArgumentException SRNI.TABLE1.NAME

Please i am trying this one from two months. but it is not getting. I have tried alot by studying all tutorials in Java Studio Creator. I have posted many times but i have followed everyones suggestion. Please give me some instances of writing code to the corresponding requirements i have mentioned above.Please explain step by step including simple one also.

Thanking You in Advance.

[920 byte] By [bronze-starDukes] at [2007-11-26 12:15:14]
# 1

Hi Srinivasan,

Please check out the Database projects available at:

http://blogs.sun.com/sakthi/entry/flavors_of_crud_tutorial_projects

These have been exercised using this tutorial against different databases:

http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ins erts_updates_deletes.html

HTH,

Sakthi

bronzestar at 2007-7-7 14:18:52 > top of Java-index,Archived Forums,Socket Programming...