How to access the value of checked radio button in group??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akshay01
    New Member
    • May 2008
    • 12

    How to access the value of checked radio button in group??

    Hi all,
    I am using the following code to create the radio button group in which i have a while loop which will create the radio buttons with same name and different values.
    Code:
    while(rs.next()){
    <INPUT TYPE="radio" NAME="RadioValues" VALUE="A"+no_of_elements>
    }
    here "no_of_elements " is an interger value..
    Does anyone knows how to get the value of the checked radio button in next jsp after submitting the form??

    Any help will be appriciated!!


    Thanks!
    Last edited by acoder; Jun 5 '08, 11:17 AM. Reason: Moved to Java forum
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Hey there!

    It sounds like you are saying a number of things at once, not an expert or anything but are you trying to control RadioButton action on a JSP file?

    Are you running a servlet? You might consider adding more code for all to see and point out your area of interest. How 'bout that! I would advise against adding fields to a JSP, create a class. Please jump in on this note folks, thought to have read this.

    I actually wrote a bit of code that reads colour into TextFileds depending on RadioButton selected, but I am not sure what you need truly, please tell us more.

    In a bit!

    Dököll
    Last edited by Dököll; Jun 7 '08, 01:07 AM. Reason: text...

    Comment

    Working...