File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating table JDBC-MS-ACCESS

 
Saumyaraj Zala
Ranch Hand
Posts: 56
Android Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After inserting the values table branch i want to create a new table.
The values come from a jsp page.
The values are getting inserted successfully but the table is not being created and it does not check the if statement i just have a blank page.
Thankyou.
Here is my code:-


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means an Exception is being thrown. Which you catch and log. What do the logs say?

Since the catch doesn't do anything else, that's why you aren't being redirected anywhere.
 
Saumyaraj Zala
Ranch Hand
Posts: 56
Android Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:That means an Exception is being thrown. Which you catch and log. What do the logs say?

Since the catch doesn't do anything else, that's why you aren't being redirected anywhere.


Ya, Null Pointer Exception.
 
Saumyaraj Zala
Ranch Hand
Posts: 56
Android Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I got it. I was Closing two ")" after option1..
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you use a PreparedStatement when you have data you want to put into your SQL like that. If you do that you won't have a maze of confusing quotes to throw you off the track.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic