You can't change the request parameters at all. (Technically, you can change
them with a Filter, but that would not be appropriate here, so they are
essentially immutable in this context.)

Use a redirect after the login action rather than a forward. That way the
URL in the browser will match what the user sees in their browser window,
and it sounds like it might also fix your other problem.

-Max

----- Original Message ----- 
From: "David Friedman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 1:39 PM
Subject: skipping repopulation between actions without external forwarding


> Without an HTTP redirect, so the call is internal to Struts and not sent
> back to the client browser, how can I either:
>
> a) remove all GET/POST parameters that came with the request so my action
> gets passed nothing for repopulation.
>
> b) change one parameter that was submitted with the HTTP GET/POST Request.
>
> In my case, I have page=1 set with the login page but need it forced down
to
> page=0 the very first time as it forwards from the login to the regular
> action.  The reset() function won't work because I setPage(0) but it auto
> populates to 1 again.  That initial sign-on problem screws up my actions
in
> my forms.  I've set my actions to use 2 instead of one to check some
things
> but that is an ugly solution.
>
> Thanks,
> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to