• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Struts Validator and Radio Buttons

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I am using the struts validator and would like to ensure that one of the two radio buttons on my form was selected using the struts validator plugin. I have all of my other validation working perfectly except this one. Could someone please help me out.

Note: I dont want to select either one by default but one of the two needs to be selected before the page can be submitted.

<html:radio property="radioDiscount" value="percent" />Percentage discount
<html:radio property="radioDiscount" value="flat" />Flat rate discount

Thanks again everyone for your help.

Cheers,

Cory
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Validate radioDiscount for required.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic