This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have the following situation: User fills a form which has 2 input text boxes and 2 radio buttons with a input text box each, depending on the radio button clicked the input text box of the other radio button is made read only (i.e you cannot fill that). Now when I submit the form a servlet handles the data but the problem is how would I know which radiobutton was clicked in the form and how to retrieve data from the input text box of that radio button leaving out the other one. Moreover the servlet invokes different methods depending on the fields submitted.
Thanks for your answer, but i do have another issue, I have a more about 3 radio buttons, so to know which button was selected i need to give them all different names but that would create problems of displaying the buttons selected only one at a time, since to have a list of buttons selecting only one once we need to have them all named the same.May be if iam wrong in my thinking kindly correct it and also someone could suggest how to tackle this issue.
Thanks in advance
Joined: Sep 24, 2008