cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gelo1234 <gelo1...@gmail.com>
Subject Re: Cocoon 3.0 components
Date Wed, 19 Jun 2013 20:06:34 GMT
I wonder if C2.2 flowscript request object can be followed here in C3:
http://cocoon.apache.org/2.2/blocks/flowscript/1.0/1383_1_1.html

and we can use something like: {jexl:cocoon.request.serverName} or
{jext:cocoon.request.header.host} ?

Is any info available about C3 request object ?

-Greg


2013/6/19 gelo1234 <gelo1234@gmail.com>

> Sorry for the mistyping: s/cutom/custom.
>
> One more question: I saw <map:select ...> in examples sitemap.xmap under
> <map:match ...>
> Is it possible to put <map:select ...> straight under <map:pipeline> ?
> And what param? to use to select hostname of the incoming Request ?
>
> <map:select value="{jexl:cocoon.hostname.param}"> ?
>
> In 2.1 there was a HostSelector:
> http://cocoon.apache.org/2.1/userdocs/selectors.html
> How to code that in C3 ?
>
> Greetings,
> Greg
>
>
>
> 2013/6/19 gelo1234 <gelo1234@gmail.com>
>
>>
>> Hi all,
>>
>> I wonder if C3 still supports:
>>
>> 1. matchers in sitemap.xmap ?
>>
>> e.g.
>> <map:matchers default="wildcard">
>>                         <map:matcher logger="sitemap.matcher.wildcard"
>> name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
>>                         <map:matcher logger="sitemap.matcher.regexp"
>> name="regexp" src="org.apache.cocoon.matching.RegexpURIMatcher"/>
>>
>> 2. selectors in sitemap.xmap ?
>>
>> e.g.
>> <map:selectors default="browser">
>>                         <map:selector logger="sitemap.selector.browser"
>> name="browser" src="org.apache.cocoon.selection.BrowserSelector">
>>
>>
>> 3. Is it possible to define cutom matchers/selectors ? Any examples ?
>>
>> 4. actions in sitemap.xmap ?
>>
>> e.g.
>> <map:actions>
>>                         <map:action logger="sitemap.action.request"
>> name="request" src="org.apache.cocoon.acting.RequestParamAction"/>
>>
>>
>> 5.  <map:mount uri-prefix="" src="..." check-reload="yes"/>   ?
>>
>>
>> I've got Cocoon site that hosts multiple www domains, all based on the
>> same sitemap.xmap with <map:mount uri-prefix="" src="domain_X"
>> check-reload="yes"/>
>>
>> so the configuration is as follows:
>>
>> <map:pipeline>
>>               <map:select type="cutomDomainSelector">
>>                        <map:when test="domainA">
>>                             <map:mount uri-prefix="" src="./domaina"
>> check-reload="yes"/>
>>                        </map:when>
>>                        <map:when test="domainB">
>>                              <map:mount uri-prefix="" src="./domainb"
>> check-reload="yes"/>
>>                        </map:when>
>>                </map:select>
>> </map:pipeline>
>>
>> Is it still possible with C3 ? Or should I use some separate blocks
>> config ?
>> The problem with separate blocks config is that I want to use empty URI
>> (not different) for each site
>>
>> So
>> site1: http://www.domainA.org/
>> site2: http://www.domainB.org/
>>
>> NOT
>>
>> http://www.some.org/domainA/
>> http://www.some.org/domainB/
>>
>> under one C3 war (sitemap.xmap config). And I would like to have a common
>> block accessible from each site.
>>
>> Greetings,
>> Greg
>>
>
>

Mime
View raw message