cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <>
Subject Re: CookiePropagatorAction and sitemap parameters substitution into descriptor files
Date Tue, 18 Sep 2001 10:00:39 GMT
Quoting Paolo <>:

> I am developing a new action named CookiePropagator that lets the user
> create Cookies in the response using an external descriptor file like
> this:
> <cookies-descriptor>
>   <cookie name=".." value=".." maxage=".." (and other cookie fields)/>
>   <cookie name=".." value=".." maxage=".." (and other cookie fields)/>
> </cookies-descriptor>
> The problem is that it should be useful to implement here the sitemap
> parameters substitution to let the user insert values like "{myparam}"
> instead of the constant directly. I wrote the first action that sets
> cookies correctly but I want to implement that feature as soon as
> possible because it gives me more flexibility. How can the "substitute"
> method can be called from inside an action to replace an {name} entry
> with its value?

This "substitute" functionallity will be best implemented in the Action itself.

  <map:match pattern="*">
    <map:act type="cookie-prop">
      <map:param name="myparam" value="{1}"/>


> Thanx everyone. I attach my code!
> ByeBye,
> Paolo Scaffardi

To unsubscribe, e-mail:
For additional commands, email:

View raw message