I am using struts 1.2 frame work. I need to implement a feedback functionality. I have 3 radio button and I need to make a ajax call to send the value of the radio button while click on submit button.
I am not sure that do I need to have a bean defined with the property to hold the value for those radio button as the property value of strut radio button is required. Is there any way that when I click the button I can fetch the value of radio button using java script and make a ajax call?
Why do you prefer AJAX here, Is that a requirement that you do not want to reload the page? If yes, only then go for ajax and there are two ways
2. W/O struts: you can just dispaly the radio button as input type providing an ID and use document.getElementById('yourId') and pass it trough ajax (didnt try this method though)
I prefer the first way
Have Fun with Java
little,little.. little by little makes a lot..