• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Retrieving value from radio buttons using struts tag(Please let me know if my quest is not clear)

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




I want to retrieve the value of the radio buttn on selection of the particular radio button.The number of radio buttons dispayed based on some business logic. So there will be different number of radio buttons displayed with some value each time the user enters the value.
Now i want o know how can i retrieve the value of the radio button . I knw that there is an attribue named "value" available with <html:radio> tag.
but value has to be retrieved from some bean property.How can i do that?

I tried in javascript like

var value=document.forms[0].DebitCard[i].value;

but this gives me ""



reply
    Bookmark Topic Watch Topic
  • New Topic