Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data not insert.

 
kandarp Bhatt
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i use printStackTrace() in JSP and out put comes in browser?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David O'Meara
Problem find out and solved
Thanks
Kandarp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic