File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 8910
    
    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]
 
Don't get me started about those stupid light bulbs.
 
subject: returning Dynamic result pages in struts 2.0