cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: trouble getting return values from an Action Map
Date Tue, 09 Jul 2002 22:09:02 GMT
On 09.Jul.2002 -- 03:13 PM, Leona Slepetis wrote:
> Hi All,
> 
> I've gone  through the samples and archives and still am having trouble
> getting return values from an Action.
> 
>       <map:act type="gs-login">
>           <map:redirect-to uri="summary">
>             <map:parameter name="playerID" value="{playerID}"/>
 
>     <map:match pattern="summary">
>         <map:parameter name="playerID" value="{1}"/>

Leona,
I've deleted all but the relevant lines. Since you send a redirect
response to the browser, processing ends.

The browser requests a new page. For this (second) request, no action
is run, thus no values are set.

  client                 cocoon
     ---------gs-login----->
                         (action)
     <---redirect-to-summary

     --------summary------->
     <-------summary--------

If you need to keep the value, you could
a) use cocoon: protocol in a generator
b) put summary in a resource and call it
c) store value e.g. in session

	Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add "SUMMARY: " to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message