Hello, I use the following with C 2.0.3 :

   <map:action logger="error.baepp.setmydate" name="setmydate"
src="baepp.SetMyDateAction"/>

To keep it simple this action takes "lang" parameter and puts its value in
"mydate" parameter.

and a test pipeline :

<map:pipeline>
<map:match pattern="mytest/*">
<map:act type="setmydate">
<map:parameter name="lang" value="{1}"/>
<map:redirect-to uri="http://www.google.fr/{mydate}"/>
</map:act>
<map:redirect-to uri="http://www.google.fr/pasok/{1}"/>
</map:match>
</map:pipeline>


I doesn't work and redirects to the map:act failure url.

If I use <map:parameter name="lang" value="EN"/> it works.

I want to use the value of "*" to pass it to my action. What's wrong ? I
also tried {../1} but this does not exist.

Thanks for a tip !

Barbara


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

Reply via email to