cocoon-users mailing list archives

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

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.. 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}"/>
I couldn't found how to do this.

thx in advance
Mario Brust


System Development

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message