954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Please help(Problem in insertion data to database)


Kisisel
Bilgiler

Egitim Bilgileri
Beceriler
Ek Bilgiler
 





Kisisel Bilgiler




Ad* :
Soyad*:

Dogum Tarihi*:

Cinsiyet* :






Bayan


Erkek


Medeni Durum* :

EvliBekar





 

mysticcc
Newbie Poster
3 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

Well, you might not be getting an error message, because you have commented out the contents of your catch block, effectively ignoring any errors. Remove the comment symbols in the catch block and try it again in order to check whether or not you actually get any error messages.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

I removed comments but my problem still go on. I don't get any error message. Maybe catalina path is wrong. I set it to my folder where jsp and html files exist. Is it wrong?

mysticcc
Newbie Poster
3 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

Did you remove the comments in the catch block or only the comment symbols (i.e. /* and */). If you removed the comments all together, then of course you are still not seeing any errors as the catch block is still empty. Make sure the catch block is actuall doing something. Your catch block should be as follows:

catch (Exception e) { 
    System.err.println("Insertion Error:  " + e.getMessage());
    e.printStackTrace();
}


Make sure that it is that way, and try again. Then tell us what error you get.

And, trust me, if your path were wrong you would be getting errors. Usually ClassNotFoundException errors.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Thank you very much, I solved problem. I made a mistake that forgot a bracket. :)

mysticcc
Newbie Poster
3 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You