You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by oceatoon <t....@systheo.com> on 2005/01/19 18:43:23 UTC
jxtemplate: cocoon.request.locale??
Hi
I trying to retreive the value of my locale paramater in the url from within
jx but , with a url /url?locale=fr ${cocoon.request.locale} returns
nothing. It seems to be in the docs though. am I doing something wrong or
is it jx?
Thanks
Tibor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: jxtemplate: cocoon.request.locale??
Posted by oceatoon <t....@systheo.com>.
Hi Jan
> The variables ${cocoon} and ${cocoon.request.locale} should have values.
> (if I use them in my jx, I do get an object/locale) Are you using jx
> correctly (generator type="jx", or transformer)? Can you give more
> information regarding the context?
This is what I thought, here 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 ??
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: jxtemplate: cocoon.request.locale??
Posted by Jan Hoskens <jh...@schaubroeck.be>.
The variables ${cocoon} and ${cocoon.request.locale} should have values.
(if I use them in my jx, I do get an object/locale) Are you using jx
correctly (generator type="jx", or transformer)? Can you give more
information regarding the context?
Kind Regards,
Jan
oceatoon wrote:
> by looking at the content of ${cocoon} it seems that the request object in
> that context is null??? where as the docs seem to specify it ??
> Can someone confirm this?
> Thanks
> Tibor
>
>
>
>
>>Hi
>>
>>I trying to retreive the value of my locale paramater in the url from
>>within jx but , with a url /url?locale=fr ${cocoon.request.locale} returns
>>nothing. It seems to be in the docs though. am I doing something wrong or
>>is it jx?
>>
>>Thanks
>>Tibor
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: jxtemplate: cocoon.request.locale??
Posted by oceatoon <t....@systheo.com>.
by looking at the content of ${cocoon} it seems that the request object in
that context is null??? where as the docs seem to specify it ??
Can someone confirm this?
Thanks
Tibor
> Hi
>
> I trying to retreive the value of my locale paramater in the url from
> within jx but , with a url /url?locale=fr ${cocoon.request.locale} returns
> nothing. It seems to be in the docs though. am I doing something wrong or
> is it jx?
>
> Thanks
> Tibor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org