cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: jx : cocoon.request object ??
Date Thu, 20 Jan 2005 15:40:35 GMT
Jan Hoskens wrote:
> Leszek Gawron wrote:
> 
>> oceatoon wrote:
>>
>>> Leszek Gawron wrote:
>>> This might be more complete:
>>> This is my use case:
>>>
>>> I call /home/europe?locale=fr
>>> where url is a xml file containing jx code processed by <map:match 
>>> pattern="home/*">
>>>      <map:act type="locale">
>>>          <map:generate type="jx" src="public/home_jx.xml" 
>>> label="display">
>>>                         <map:parameter name="language" 
>>> value="{language}"/>
>>>                         <map:parameter name="country" value="{../1}"/>
>>>            </map:generate>
>>>              <map:call resource="xslt_i18n_xhtml"/>
>>>          </map:act>
>>>      </map:match>
>>>
>>> and in my home_jx.xml I have ${cocoon.request.locale} that comes out
>>> empty ??
>>>
>>>
>> please try ${request.locale} and it should work.
>>
> That might work, check your cocoon version, but be aware: the docs state:
> 
> The following variables are deprecated but still supported:
> 
> org.apache.cocoon.environment.Request request
> The current Cocoon request (deprecated: use cocoon.request instead)
> 
> Kind Regards,
> Jan
yes .. but cocoon.request is not being set properly if not used from flow

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message