Hi Leona, I think there was some discussion about changing how the redirect-to works, but I believe that in Cocoon 2.0.2, you can't provide parameters via a map:parameter sub-element. That is, when you redirect to summary, your playerID parameter is being ignored.
One possible workaround I've seen mentioned on this list is: <map:act type="gs-login"> <map:redirect-to uri="summary?playerID={playerID}"/> ... If you're planning to pass multiple parameters, though, I think someone posted something about a bug with escaping the ampersand (http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101828372801806&w=2) Anyway, hope that helps! Harry -----Original Message----- From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 5:09 PM To: [EMAIL PROTECTED] Subject: Re: trouble getting return values from an Action Map 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 [EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>