Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 validate a checkbox

 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic