It's not a secret anymore!*
The moose likes JDBC and the fly likes Data not insert. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Data not insert." Watch "Data not insert." New topic
Author

Data not insert.

kandarp Bhatt
Greenhorn

Joined: Aug 03, 2001
Posts: 13
Friends,
I am using redhat linux 7.3, Tomcat 4.1, mysql comes with redhat linux 7.3.
my programe works well, but don't insert any record
Here is my code

Here my database strucuture

I don't know what is the problem?
help me.
Thanks in advance
Kandarp Bhatt
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459


I'm against e.printStackTrace(), but I hate code that hides important exceptions even more. Is it getting past this bit successfully? I'm guessing you have an exception, but without the stack trace, your guess is as good as mine.
Dave
kandarp Bhatt
Greenhorn

Joined: Aug 03, 2001
Posts: 13
How can i use printStackTrace() in JSP and out put comes in browser?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

e.printStackTrace() can still be used, it will go to the standard output. This is generally a bad idea in JSPs, but it's better than throwing it away completely.
Try this in your JSP:

Dave
kandarp Bhatt
Greenhorn

Joined: Aug 03, 2001
Posts: 13
Thanks David O'Meara
Problem find out and solved
Thanks
Kandarp
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Data not insert.