Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

serverside validation of check box

 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having one checkbox in my JSP....I want to check whether this check box is checked or not in server side...Please help me on this ..Please send sample code...

Thanks in Advance,
Narvish
 
Tarun Yadav
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by LakshmiNarayana vishnu:
Hi,
I am having one checkbox in my JSP....I want to check whether this check box is checked or not in server side...Please help me on this ..Please send sample code...

Thanks in Advance,
Narvish


If the checkbox isn't checked, it will not be sent with the form data by the browser. So if while trying to read the checkbox parameter you get a null, it was unchecked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic