You can also manipulate your forward to put the parameters (preferably just an ID, not a whole set of properties) onto the querystring, so that they reappear in the request parameters and your form bean. It's the Post-Redirect-Get pattern.

Nuwan Chandrasoma on 21/11/06 10:15, wrote:
if you use redirect=true , it would create a new request.. so what ever u had on the reqest will be lost. i think u have your action in request socope, you can change them to session scope and make sure you removed the Form and other attribute you put on the session after the action is finished.

----- Original Message ----- From: "fea jabi" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, November 21, 2006 6:49 AM
Subject: why/when to use redirect
I am not really clear when to use redirect=true.

I am chaining actions. As I was doing this I had to use redirect=true to get the values that were set in one action to another. But the request attributes set in that action were lost when redirect is set to true. why is that? is there any way, I can use redirect=true and also get the request attributes???

also, not really sure when to use the contextRelative=true/false/yes/no??


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to