cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: how to send request paramater to a pipeline?
Date Wed, 24 Apr 2002 15:31:22 GMT
> I have this firt pipeline :
>
>                 <map:pipeline>
>                         <map:match pattern="etatdb">
>                          <map:generate type="serverpages"
> src="etatdb.xsp"/>
>                         <map:transform src="etatdb.xsl"/>
>                         <map:serialize/>
>                 </map:pipeline>
>
> when i use this pipeline, my URL is :
> http:://localhost/cocoon/phl/etatdb?client=1&region=PL
>
> I have a second pipeline, that use database update action and i want
> redirect  to the first pipeline when database is update :

Try this

>                 <map:pipeline>
here:
>                         <map:match pattern="majetatdb*">

>                           <map:act set="etatdb">
>                            <map:parameter name="descriptor"
> value="context://phl/histo_etatdb.xml"/>
and here:
>                            <map:redirect-to uri="/etatdb{1}"/>


>                          </map:act>
>
>                          <map:generate type="serverpages"
> src="majetatdb.xsp"/>
>                         <map:transform src="majetatdb.xsl"/>
>                           <map:serialize/>
>                         </map:match>
>                 </map:pipeline>
>
> my question is :
> how i can force the request parameter to the <map:redirect-to
> uri="/etatdb"/>.

I'm not sure that this will work, but I would avoid redirect at all. Try to
use internal redirect instead:
<map:redirect-to uri="cocoon:/etatdb"/>.

Regards,
  Konstantin

>
> thanks
>
> Philippe LEBRETON
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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