cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Hoechstaedter <j.hoechstaed...@memocomp.de>
Subject Re: Access tomcat session from cocoon
Date Tue, 24 Jun 2008 12:37:29 GMT
Thanks Barbara, very good work.

The feature can be used in the sitemap by

<map:parameter name="username" value="{request:remoteUser}"/>

cheers

Barbara Slupik schrieb:
> In cocoon-2.2 I had to add this:
>
> <filter>
> <filter-name>springRequestContextFilter</filter-name>   
> <filter-class>org.springframework._web.filter.RequestContextFilter_ 
> <http://web.filter.RequestContextFilter/></filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>springRequestContextFilter</filter-name>
> <url-pattern>/*</url-pattern>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>REQUEST</dispatcher>
> </filter-mapping>
>
> to my application _web.xml_ <http://web.xml/> file.
>
> I am getting my user in flow.js with cocoon.request.getRemoteUser() 
> and checking user role with cocoon.request.isUserInRole("user-role").
>
> Barbara
>
> On 24 Jun, 2008, at 12:42 pm, Johannes Hoechstaedter wrote:
>
>> I have not found anything useful for my specific problem, yet.
>>
>> I tried: {session:username},{session:user} and 
>> {session:getAttribute(., 'username')}
>>
>> can't anybody help?
>>
>> Can I use the sessionhandlerimpl for my problem?
>>
>> Johannes Hoechstaedter schrieb:
>>> Hi everybody,
>>>
>>> My cocoon application runs in a tomcat container. The tomcat manages 
>>> the authentication for the url of my application (a container based 
>>> authentication). So now: I don't use the authentication framework. 
>>> How can I access session attributes like username, ... ?
>>>
>>> Thanx for any help
>>> cheers
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>>> <mailto:users-unsubscribe@cocoon.apache.org>
>>> For additional commands, e-mail: users-help@cocoon.apache.org 
>>> <mailto:users-help@cocoon.apache.org>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>> <mailto:users-unsubscribe@cocoon.apache.org>
>> For additional commands, e-mail: users-help@cocoon.apache.org 
>> <mailto: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