This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Retrieving value from radio buttons using struts tag(Please let me know if my quest is not clear) 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 "Retrieving value from radio buttons using struts tag(Please let me know if my quest is not clear)" Watch "Retrieving value from radio buttons using struts tag(Please let me know if my quest is not clear)" New topic
Author

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

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299




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 ""




Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Retrieving value from radio buttons using struts tag(Please let me know if my quest is not clear)
 
Similar Threads
Creating Radio Buttons using Struts
How to set default value for a radio button?
help with html radio tag
Arraylist in JSP with Html radio
Html Radio buttons and Arraylist