This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes not selecting values from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "not selecting values from database" Watch "not selecting values from database" New topic

not selecting values from database

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 225

in my following application i am retreiving data from the database with checkbox in each row and only checked should go in the database when i click on submit button

following is my bean file

following is

following is my jsp file file

and then servlet in which bean is calling

but the above is not giving me any output. here i didn't mention insertion query because first thing in which i have to select data from the database that is not working.
please see this.
Manish Sridharan
Ranch Hand

Joined: Jul 19, 2005
Posts: 65
Its bit difficult to tell from the code where it is failing. However, I did notice you are catching exception at every place which means application is eating up the exception. If I had been your place, I would change the code to throw the exception at every place instead of catching it. it would definitely give some pointers in terms of stack trace if it is failing anywhere.
You can also try running application in debug mode to see why it is not picking up the requested values.


Manish S.
I agree. Here's the link:
subject: not selecting values from database
It's not a secret anymore!