cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Heid <h...@fh-heilbronn.de>
Subject AW: Locale-Action
Date Tue, 11 Sep 2001 11:05:37 GMT
Use ../1 instead of 1:

<map:match pattern="*_*/**">
  <map:act type="locale">
    <!-- This way don't work -->
    <map:parameter name="language" value="{../1}"/>
    <map:parameter name="country" value="{../2}"/>
    <!-- But how to set the locale here without using
         the CGI-Parameter ?locale={1}_{2} -->
    <map:redirect-to uri="{../3}" uri-prefix="{../1}_{../2}/"/>
  </map:act>
</map:match>

-----Urspr√ľngliche Nachricht-----
Von: Mario Brust [mailto:mbrust@virbus.de]
Gesendet: Dienstag, 11. September 2001 13:03
An: Cocoon-Users (E-Mail)
Betreff: Locale-Action


hi,

I'm using cocoon2b2 and want to use the Locale-Action. But I did not found
any way to extract the language out of the uri.
I want to have a uri like
http://bla.bla/cocoon/bla/sitemaproot/de_DE/site.html.

If I extract the locale I don't know what to do with.
<map:match pattern="*_*/**">
  <map:act type="locale">
    <!-- This way don't work -->
    <map:parameter name="language" value="{1}"/>
    <map:parameter name="country" value="{2}"/>
    <!-- But how to set the locale here without using
         the CGI-Parameter ?locale={1}_{2} -->
    <map:redirect-to uri="{3}" uri-prefix="{1}_{2}/"/>
  </map:act>
</map:match>

thx in advance
Mario Brust

---

System Development
VIRBUS AG
ICQ   24139151
mario.brust@virbus.de
www.virbus.de


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message