Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checkboxes

 
subrahm puvvada
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have one situation.
in jsp when u check items and click submit button the checked values are sumitted to the database.that i have done it
if u don't check any one and click submit button then server500 error is comming.
how to handle this situation
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If dont check it means you will get null as a value of that parameter.
It is just like the same that you dont have any parameter with that name at all.
 
Vikas Bhatia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by subrahm puvvada:
i have one situation.
in jsp when u check items and click submit button the checked values are sumitted to the database.that i have done it
if u don't check any one and click submit button then server500 error is comming.
how to handle this situation


It means that you are trying to refer to a value of a parameter, the object for which does not exist.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic