Unable to save data into my database without reload
posted 1 year ago
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.