This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a requirement here that there is a login page where user enter his details and there are many radio boxes in the page,After i click submit i want to redirect the page to a different page based on the radio button selected.Can any one please provide some idea on this.The result from action class should be dynamic so that when i add a new radio button then it should be easily to add the corresponding results to redirect to the new page.Thanks in advance.
You can return any value from an action as long as it is configured in the struts.xml. Of course, this is not "completely" dynamic, as you'll have to add an entry in struts.xml to correspond to each radio button.