• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem passing parameters to redirect action

shukla raghav
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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






no redirection happening ?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic