Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Check atleast one checkbox is selected

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic