You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by niels <ni...@gmail.com> on 2005/12/18 23:42:57 UTC

How to keep a request Attribute available (from first action) after second action is called

An action (ActionOne with scope=request) is called which
puts a result list on an attribute like:
request.setAttribute("listResult", list);
This result is displayed in a jsp.

After that a second action (ActionTwo) is called
which forward to another jsp. How can I make the "listResult" available in
ActionTwo?


Thanks in advance,
Niels

Re: How to keep a request Attribute available (from first action) after second action is called

Posted by Paul Benedict <pa...@yahoo.com>.
Neils,

The only thing in common between request 1 and request 2 is the user session. If you want
something to persist between requests, place it in the session; then clean the session when
finished.

Paul


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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