> "Vadim Gritsenko" <[EMAIL PROTECTED]> wrote:
>
>> From: Kai Bruns [mailto:[EMAIL PROTECTED]]
>>
>>
>> I'm using Cocoon 2.0.1 on Tomcat 4.0.1. I've set up my main sitemap to
>> match different sub-uris and then mount a sub-sitemap for the
>> corresponding
>> sub-directory the way it's done in the cocoon sub-sitemap example. In
>> addition I want to do user authentication for a whole subsitemap in
>> the
>> main sitemap this way:
>>
>>
>> <map:match pattern="sub/**">
>>   <map:act type="session-validator">
>>     <map:parameter name="descriptor" value
>> ="context://descriptors/params.xml"/>
>>     <map:parameter name="validate" value="username"/>
>>   </map:act>
>>   <!-- something was wrong, redirect to login page -->
>>   <map:redirect-to uri="../login"/>
>> </map:match>
>>
>>
>> So far so good, although I do not understand why I must use
>> <map:redirect-to uri="../login"/> with prefix '../' in my main
>> sitemap,
>> maybe that's already a hint for a problem.
>>
>> What I wanted to do is to access the sitemap param 'username' in the
>> subsitemap, which does not work.
>
>You are right. This does not work.
>
>Vadim

I've already moved session-validation to the sub sitemap so that I can use
the sitemap parameter 'username' there.

But I still wonder whether my first idea was expected to work or not.

Kai




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

Reply via email to