cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Brust" <mbr...@virbus.de>
Subject how can I give a parameter to an action in the sitemap?
Date Mon, 23 Jul 2001 17:03:39 GMT
hi,

I want to use the LangSelect-Action (included in c2). They has a method
storeLanguage (public static java.lang.String
getLang(java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters par)).

Now I want to get the language out of the uri (e.g..
www.bla.de/en/index.html for the English page).
So I use in a pipeline the following map:match.
    <map:match pattern="*/welcome">
      <here i want to call the method with the parameter {1}/>
      <map:act type="lang-select">
        <here i can use the parameter - this works./>
        <map:redirect-to uri="{lang}"/>
      </map:act>
    </map:match>
I couldn't found how to do this.

thx in advance
Mario Brust


---

System Development
VIRBUS AG
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>


Mime
View raw message