aspose file tools*
The moose likes Struts and the fly likes Check atleast one checkbox is selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Check atleast one checkbox is selected" Watch "Check atleast one checkbox is selected" New topic
Author

Check atleast one checkbox is selected

venkatesh seshagiri
Greenhorn

Joined: Jun 05, 2003
Posts: 7
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check atleast one checkbox is selected