<map:match pattern="protected-*">
          <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"/>

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

will work too



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: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to