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.
Joined: Aug 09, 2012
I feel that's not required at all. You can submit your data with ajax and implement the logic accordingly.