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