cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Bruns" <br...@dialog.uni-oldenburg.de>
Subject RE: RE: <map:mount> and sitemap params
Date Wed, 06 Mar 2002 15:06:45 GMT

> "Vadim Gritsenko" <vadim.gritsenko@verizon.net> wrote:
>
>> From: Kai Bruns [mailto:bruns@dialog.uni-oldenburg.de]
>>
>>
>> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message