In my action class, I have a property 'radioName'.
First time the jsp page is loaded, the radio button defaults to 'B'. This is correct.
However, when the user makes a different selection and submits the page, the user selection has to be selected instead of the default value.
Can anyone please let me know how to achieve this?
Right now, no matter what the user selects, it is always defaulting to 'B'.
Thanks in advance!
Rather than setting the value in the JSP, you should be setting the value in the action. This allows you to choose between the default value the first time and the user selected value on subsequent views.