struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Witbeck, Shane" <>
Subject RE: Passing parameters
Date Fri, 19 Apr 2002 14:38:29 GMT
you could do something like this in your action:

String forwardPath = "/action/Blah?source=" + sourceValue;
return new ActionForward(forwardPath, true); // which sets redirect=true
return new ActionForward(forwardPath); // which is redirect=false


Shane Witbeck
Developer, Bank of America
phone: 904.987.1688

-----Original Message-----
From: Bhaskar Gopalan []
Sent: Friday, April 19, 2002 10:09 AM
To: Struts Group (E-mail)
Subject: Passing parameters


I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want to go back to B or C, .i.e. to where I came from. I send the source
as a request parameter which is visible in action class of A. Now, when I am
can i pass the source thru mapping.findForward()?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message