• Post Reply Bookmark Topic Watch Topic
  • New Topic

checkbox / null pointer exception  RSS feed

 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a jsp page I have a set of checkboxes if any checkbox is checked then that row will get deleted. If none of them are checked then I am getting null pointer exception in my client Action page where I am getting the parameters. Due to some reason I can't force user to click atleast one from javascript.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a checkbox is not checked, no parameter representing it is submitted. Your action code will need to account for that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!