Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

returning Dynamic result pages in struts 2.0  RSS feed

 
vijay umar
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!