Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes struts2 validate a checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 validate a checkbox" Watch "struts2 validate a checkbox" New topic

struts2 validate a checkbox

Bhaarat Sharma
Ranch Hand

Joined: Jun 04, 2007
Posts: 96

I am trying to validate a simple checkbox like this but it isnt happening at all

when validation errors are found the return statement will automatically be 'input' and i have configured that in my struts config file. The validation for the name field is happening fine and that is a <s:textfield tag. but for <s:checkbox it isnt working.

what is the way to validate a simple single checkbox

I agree. Here's the link:
subject: struts2 validate a checkbox
Similar Threads
struts2 validation with conditions!
Vallidation Using Annotation + Struts 2
How to validate using annotation
Struts2: preselect checkbox
Struts2: Problem with form validation using validation xml