You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lee Harrington <le...@gmail.com> on 2004/10/13 18:05:59 UTC

Disappearing request values

I have an action that forwards to a second action.  I set values in
the request scope in the first action, but in the second action the
values are null.

I solved my immediate need by putting the value in a session.  As the
value is not needed for more than passing into the second action, I'd
prefer not to use session variables.

Any help would be appreciated.

Lee

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


Re: Disappearing request values

Posted by Lee Harrington <le...@gmail.com>.
That did the trick.  I hadded "redirect=false" to the forward and now
all of my request variables are still in the request scope.  Thank you
VERY much.

Lee


On Wed, 13 Oct 2004 12:12:58 -0400, David G. Friedman
<hu...@ix.netcom.com> wrote:
> Lee,
> 
> Is your actionMapping using 'redirect="true"'?  Try adding (or changing, if
> you already have it) your forward's redirect parameter to "false".  This
> will make the forward internal so the browser does nothing, struts passes
> everything internally and loses nothing.  Additionally, if you are
> displaying a page for the user who must click to continue, try using
> html:hidden tags so that new page's form will be able to pass your
> variables, as you desire, without using a session scoped bean.
> 
> Regards,
> David
> 
> 
> 
> -----Original Message-----
> From: Lee Harrington [mailto:leebase@gmail.com]
> Sent: Wednesday, October 13, 2004 12:06 PM
> To: Struts Users Mailing List
> Subject: Disappearing request values
> 
> I have an action that forwards to a second action.  I set values in
> the request scope in the first action, but in the second action the
> values are null.
> 
> I solved my immediate need by putting the value in a session.  As the
> value is not needed for more than passing into the second action, I'd
> prefer not to use session variables.
> 
> Any help would be appreciated.
> 
> Lee
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

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


RE: Disappearing request values

Posted by "Freddy Villalba A." <fv...@pericless.com>.
Are you redirecting or just forwarding to the second action?

-----Mensaje original-----
De: Lee Harrington [mailto:leebase@gmail.com]
Enviado el: miercoles, 13 de octubre de 2004 18:06
Para: Struts Users Mailing List
Asunto: Disappearing request values


I have an action that forwards to a second action.  I set values in
the request scope in the first action, but in the second action the
values are null.

I solved my immediate need by putting the value in a session.  As the
value is not needed for more than passing into the second action, I'd
prefer not to use session variables.

Any help would be appreciated.

Lee

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


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


RE: Disappearing request values

Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Lee,

Is your actionMapping using 'redirect="true"'?  Try adding (or changing, if
you already have it) your forward's redirect parameter to "false".  This
will make the forward internal so the browser does nothing, struts passes
everything internally and loses nothing.  Additionally, if you are
displaying a page for the user who must click to continue, try using
html:hidden tags so that new page's form will be able to pass your
variables, as you desire, without using a session scoped bean.

Regards,
David

-----Original Message-----
From: Lee Harrington [mailto:leebase@gmail.com]
Sent: Wednesday, October 13, 2004 12:06 PM
To: Struts Users Mailing List
Subject: Disappearing request values


I have an action that forwards to a second action.  I set values in
the request scope in the first action, but in the second action the
values are null.

I solved my immediate need by putting the value in a session.  As the
value is not needed for more than passing into the second action, I'd
prefer not to use session variables.

Any help would be appreciated.

Lee

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


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