If you forward between actions without actually redirecting the browser,
then the parameters remain intact!
If you set redirect to true, then the request will be redirected at the
browser level, and parameters will be cleared.
Daniel.
-Original Message-
From: James MacKenzie
If the problem is that somethingAction2 sees row parameter, you have to
send a redirect when calling action2. You can set redirect=true in the
forward. Request parameters cant be deleted during request life cicle.
When sending a redirect, a new request is generated, so original request
paramenters
You are probably forwarding to something2Action.
If you redirect to something2Action, then the query parameters
will have been removed from memory.
robert
-Original Message-
From: James MacKenzie [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 11:01 AM
To: [EMAIL PROTECTED]
James:
Why this happens is because you are proabably forwarding (rather than
redirecting) to Something2Action - so the request object is intact for your
second action. So you can choose to redirect instead.. however be aware
that if you redirect, *everything* in the request object then will be
This is the same request so the parameters are still there.
In the struts-config you can use redirect=true which means use a new request (on the
forward), but I rarely use this personally. (Default is false)
sandeep
-Original Message-
From: James MacKenzie [mailto:[EMAIL PROTECTED]
At 11:54 AM -0400 4/5/04, Brian Lee wrote:
Note that redirecting is less efficient than forward as it involves
a additional http response and request. So forward will be faster
and less processor intensive.
Yes, but as noted, Struts is not designed to pass a single HTTP
request through the
6 matches
Mail list logo