Magnus Haraldsen Amundsen schrieb:


<map:match pattern="admin/emner/*">

        <map:act type="cauth-is-logged-in">

          <map:parameter name="application" value="Sublima"/>

<map:call function="com.computas.sublima.app.controller.admin.TopicController">

            <map:parameter name="mode" value="emner"/>

            <map:parameter name="submode" value="{1}"/>

          </map:call>

        </map:act>

        <map:redirect-to uri="{request:contextPath}/login"/>

      </map:match>

My problem is that <map:parameter name="submode" value="{1}"/> always is an empty String à “”

This appeared when I applied the authentication to the sitemap.

This is a common mistake :) The {1} refers to values provided by the "parent" of the call command, which is the action. But you want to access the value from the matcher which is one level above, so use {../1} instead. There is a nicer way of doing this by giving a the match node a name, but I don't know the exact syntax out of my head.

Carsten

--
Carsten Ziegeler
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to