cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leona Slepetis" <le...@gorillacommunications.com>
Subject Re: trouble getting return values from an Action Map
Date Fri, 12 Jul 2002 16:46:42 GMT
Thanks to both of you. It is working now.
Leona

----- Original Message -----
From: "Lai, Harry" <HLai@coremetrics.com>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, July 09, 2002 5:39 PM
Subject: RE: trouble getting return values from an Action Map


> 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:haul@dvs1.informatik.tu-darmstadt.de]
> Sent: Tuesday, July 09, 2002 5:09 PM
> To: cocoon-users@xml.apache.org
> 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
> 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>
>
> ---------------------------------------------------------------------
> 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>
>




---------------------------------------------------------------------
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