• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Check atleast one checkbox is selected

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic