aspose file tools*
The moose likes Struts and the fly likes problem passing parameters to redirect action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem passing parameters to redirect action" Watch "problem passing parameters to redirect action" New topic
Author

problem passing parameters to redirect action

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
here is a test code for redirection

what i am trying to do

1. Displaying a jsp form (resultRedirAction.jsp) to enter 2 numbers (number1, number2)




2. number1 is mapped to ActionClass TestRedirectActionOne.java which finds the square of number1 and stores in an instance variable and i want number2 to be passed as parameter to another ActionClass TestRedirectActionTwo.java using redirect action (ref struts.xml below).TestRedirectActionTwo.java should find the square of number2 from its execute method which returns success dislplaying the resulting jsp resultRedirActionSuccess.jsp. this jsp will display number1, square of number1, number2 and square of number2

struts.xml



TestRedirectActionOne.java




TestRedirectActionTwo.java



resultRedirActionSuccess.jsp



problem

no redirection happening ?
 
jQuery in Action, 2nd edition
 
subject: problem passing parameters to redirect action