• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating table JDBC-MS-ACCESS

 
Saumyaraj Zala
Ranch Hand
Posts: 56
Android Java Netbeans IDE
  • 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: 34229
341
Eclipse IDE Java VI Editor
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I got it. I was Closing two ")" after option1..
 
Paul Clapham
Sheriff
Posts: 20990
31
Eclipse IDE Firefox Browser MySQL Database
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic