Hi,
I am working on a code where it is required to bind the values from
jsp using radio buttons in the
bean array. In the code snippet below, if I use status.expression in the name attribute, then I am unable to group the radio buttons since every radio button will be having a different name and hence, I can select multiple radio buttons simultaneously since they don't belong to a group. If I use a constant name to group radio buttons, then I am unable to set the value of the property customerSelected using radio buttons.
On submitting the form, the CustomerInfo. customerSelected should be set true or false.
The code is as follows:
CustomerBean.java
CustomerInfo.java
customerInfo.jsp
sample-servlet.xml
Spring Version Being Used: 2.0
Please guide how can I achieve my target.
Thanks,
Vaibhav