struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Witbeck, Shane" <Shane.Witb...@bankofamerica.com>
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
OR
return new ActionForward(forwardPath); // which is redirect=false

Sincerely,

Shane Witbeck
______________________________________
Developer, Bank of America
email: Shane.Witbeck@bankofamerica.com
phone: 904.987.1688

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


Hi,

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
done,
can i pass the source thru mapping.findForward()?

Thnx,
GB

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message