cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject Re: accessing request parameters in sitemap
Date Wed, 13 Feb 2002 12:46:19 GMT
Hi Ovidiu,

On Tue, Feb 12, 2002 at 09:47:46AM -0800, Ovidiu Predescu wrote:
 
> Currently the sitemap has a syntax which allows referring to matching
> portions of the URL. Is there a way to refer to request arguments,
> headers or session related properties directly in the sitemap?
> Something like this:
> 
> <map:match pattern="doc/**">
>   <map:generate src="documents/{1}">
>     <map:parameter name="type" value="{parameter(type)}"/>
>     <map:parameter name="browser" value="{header(X-Browser)}"/>
>   </map:generate>
>   ...
> </map:match>

	Parts of this is possible with the RequestParamAction. It would
	need to be extended into a more general action to support
	headers, session properties, etc and the syntax you've used
	above, but the basics are there.

	Take a look at org.apache.cocoon.acting.RequestParamAction.

	Cheers,

	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

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


Mime
View raw message