cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 許議中 <john...@erp.tw>
Subject Re: map parameter wildcard
Date Wed, 13 Dec 2006 07:23:46 GMT
      <map:match pattern="protected-*">
        <map:act type="auth-protect">
          <map:parameter name="handler" value="demohandler"/>

          <map:generate src="cocoon:raw:/1.content"/>
          <map:transform type="session"/>
          <map:transform src="page2chtml.xsl"/>
          <map:transform type="encodeURL"/>
          <map:serialize type="chtml"/>

        </map:act>
        <!-- something was wrong, redirect to login page -->
        <map:redirect-to uri="login"/>
      </map:match>

this will work

johnson


Jeroen Reijn 提到:
> Hi Johnson,
> 
> I'm not that familiar with the auth-protect action, but what happens
> when you leave out the action and just try to generate the source. Does
> it work then? If so, it would mean it can access it, but the
> authentication fails.
> 
> What is the error message you're getting and what version of cocoon are
> you using?
> 
> Kind regards,
> 
> Jeroen Reijn
> 
> 許議中 wrote:
> 
>>Hi!
>>
>>I've a sitemap
>>
>>      <map:match pattern="protected-*">
>>        <map:act type="auth-protect">
>>          <map:parameter name="handler" value="demohandler"/>
>>
>>          <map:generate src="cocoon:raw:/{1}.content"/>
>>          <map:transform type="session"/>
>>          <map:transform src="page2chtml.xsl"/>
>>          <map:transform type="encodeURL"/>
>>          <map:serialize type="chtml"/>
>>
>>        </map:act>
>>        <!-- something was wrong, redirect to login page -->
>>        <map:redirect-to uri="login"/>
>>      </map:match>
>>
>>when I submit a url protected-1 to this, {1} can't get the 1, what's wrong.
>>
>>johnson
>>
>>---------------------------------------------------------------------
>>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


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


Mime
View raw message