Now What is happening in above code is , since I am checking for all 3 values, it's ALWAYS checking the third button no matter what is the previous selection was.
Can some one please let me know how to achieve that in above code?
I made below changes as per your suggestion if that is what you meant..
With this change the first time the user logs in "futures" radio button is chosen. But if I select optionsCall or put, the next time the page refreshes none
of the radio buttons are selected. The idea is when the user selects a radio button, on the page refresh it should maintain the value in session when the page gets loaded.
I can see that the servlet getting the correct value for the selected radio button but somehow in JSP it's not working.
Can you please point out mistakes in the code.
Joined: Jun 21, 2001
I was able to achieve this. I made some changes to my code. and it worked.