You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pat Quinn <pa...@hotmail.com> on 2003/09/16 18:10:00 UTC

Global Forwards & Request Attributes

I have a struts action which sets a String value as an attribute in the 
request scope i then redirect to a global forward. But the value never 
appears in my jsp i'm using the <c:out/> tag lib.


Any ideas what i could be doing wrong here or do global forwards support 
request attribute population??

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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


RE: Global Forwards & Request Attributes

Posted by Robert Taylor <rt...@mulework.com>.
When you redirect the request, you lose any existing attributes.
If you must redirect then you could append your String value as 
a request parameter to the forward path or... you could simply
forward instead of redirect.

robert

> -----Original Message-----
> From: Pat Quinn [mailto:pat_quinn2009@hotmail.com]
> Sent: Tuesday, September 16, 2003 12:10 PM
> To: struts-user@jakarta.apache.org
> Subject: Global Forwards & Request Attributes
> 
> 
> I have a struts action which sets a String value as an attribute in the 
> request scope i then redirect to a global forward. But the value never 
> appears in my jsp i'm using the <c:out/> tag lib.
> 
> 
> Any ideas what i could be doing wrong here or do global forwards support 
> request attribute population??
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

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