File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not selecting values from database

 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Item.java

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
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic