I have a jsp, which displays a multiple choice question with radio buttons. There are two buttons 'Submit' and 'Next'.
When a user selects an answer and submits the form, I want to display user with result saying correct or incorrect answer on the same jsp
page retaining the selected answer. Also the submit button should now be disabled and next button should be enabled.
I am using spring MVC.
When I am returning the same jsp from controller, the question with multiple options are displayed but the selected data is lost. Also the submit buttton is not disabled.
Any help is appreciated.