You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2004/10/01 09:23:31 UTC

Re: How to write request parameter into session attribute in sitemap ?

Willy Reinhardt wrote:
> Hi,
> I get a request with a parameter like ../visu?valdoc=100.01
> I would copy the value into a session attribute this during sitemap
> proccess.
> 
> I am looking for something like:
> 
> <map:match pattern="visu">
>   <map:match type="request-parameter" pattern="valdoc">
>     <map:act type="session">
>         <map:parameter name="valdoc" value="{1}"/>
>     </map:act>
>     <map:read src="cache/{1}.html" mime-type="text/html"/>
>   </map:match>
> </map:match>

You can use the request parameter input module:

<map:act type="session">
   <map:parameter name="valdoc=" value="{request-param:valdoc}"/>
</map:act>


-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org