• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to save data into my database without reload  RSS feed

Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm writing a Web app and using Excel as backend as i'm not supposed to use anyother. Here in my code i am performing a jdbc on 2 tables. Insert in 1 and Update in another. Ans below is my code.

Here my problem is, when i hit submit, the insert part is getting correctly posted. But the update part is a bit tricky and confusing.
The System.out.println() is printing everything as expected, and to post the data I'm going to my code, delete a line, undo a delete, Save it. and i get the below message in my eclipse console.

Once i get the above message, the other sheet is getting updated.

What i'm confused is, why am i doing this for the second table but not for the first. The first is getting inserted without any issues.

Please let me know how can i fix this.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!