This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes servlet and database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "servlet and database" Watch "servlet and database" New topic

servlet and database

supriya lal

Joined: Sep 11, 2012
Posts: 15
The "res" is not becoming more than zero and hence the else block in servlet is executing.The database is not getting updated.Please help

Swastik Dey

Joined: Jan 08, 2009
Posts: 1527

Are you getting any exception?

Prabhakar Reddy Bokka
Ranch Hand

Joined: Jul 26, 2005
Posts: 193

Looks like there is an issue with the JDBC code. Test your JDBC code with a simple java class and then try this...

I agree. Here's the link:
subject: servlet and database
jQuery in Action, 3rd edition