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

Check atleast one checkbox is selected

 
venkatesh seshagiri
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have got a jsp page in which i have used multibox in a iterator tag(Struts version 1.1). Using this i could achieve dynamic rendering of the checkboxes.

I have three actions in the page. Only one action would submit the check box selections. Other two are used for tabbing and pagination.

I would like to use Struts validator framework to validate atleast one check box is checked when the user clicks on the action which submits checkbox selections.

I am new to validator framework and after reading a bit got confused. i am not sure whether to use 'required' or 'requiredIf' or anyother option. I
Any help or directions to achieve the above said validation would be helpful

Thanks
Venkatesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic