In cocoon-2.2 I had to add this:

        <filter>
                <filter-name>springRequestContextFilter</filter-name>
<filter-class>org.springframework.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 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: [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