This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes returning Dynamic result pages in struts 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "returning Dynamic result pages in struts 2.0" Watch "returning Dynamic result pages in struts 2.0" New topic

returning Dynamic result pages in struts 2.0

vijay umar
Ranch Hand

Joined: Mar 24, 2009
Posts: 100
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.
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: returning Dynamic result pages in struts 2.0
It's not a secret anymore!