aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

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
Bartender

Joined: Oct 29, 2001
Posts: 8873
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: returning Dynamic result pages in struts 2.0