Access tomcat session from cocoon

2008-06-24 Thread Johannes Hoechstaedter
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

Re: Access tomcat session from cocoon

2008-06-24 Thread Johannes Hoechstaedter
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

Re: Access tomcat session from cocoon

2008-06-24 Thread Barbara Slupik
In cocoon-2.2 I had to add this: filter filter-namespringRequestContextFilter/filter-name filter-classorg.springframework.web.filter.RequestContextFilter/ filter-class /filter filter-mapping

Re: Access tomcat session from cocoon

2008-06-24 Thread Johannes Hoechstaedter
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-namespringRequestContextFilter/filter-name

question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Robby Pelssers
Hi all, I can't seem to retrieve the css file (myDemo.css). Anybody who could give me a hint about what's wrong with my current configuration? When I take a look at the generated html page, the source looks OK to me. ?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC -//W3C//DTD

RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Jasha Joachimsthal
Hi Robby, You have to add a matcher in your sitemap to serve the CSS (with a reader). If you request in your browser resource/external/css/myDemo.css (relative from the URI of the page) you probably get an error No pipeline matches request. Regards, Jasha Joachimsthal www.onehippo.com

Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Johannes Hoechstaedter
Hi Robby, I bet you have to adjust the path: try: ../resource/external/css/myDemo.css or anything. Robby Pelssers schrieb: Hi all, I can’t seem to retrieve the css file (myDemo.css). Anybody who could give me a hint about what’s wrong with my current configuration? When I take a look at

RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Robby Pelssers
Hi Joachim, I would expect the pipeline below to match the request for the css file. What is wrong with this assumption? map:pipeline id=external-resource map:match pattern=resource/external/css/myDemo.css map:read src=resource/external/css/myDemo.css/ /map:match

Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Johannes Hoechstaedter
I once had the similar problem. See http://www.mail-archive.com/users@cocoon.apache.org/msg42286.html Robby Pelssers schrieb: Hi Joachim, I would expect the pipeline below to match the request for the css file. What is wrong with this assumption? map:pipeline id=external-resource

RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Jasha Joachimsthal
Your reference to the CSS is relative to the request URI of the page. If the request URI for the page is /foo/bar/page.html your browser will attempt to request the CSS on /foo/bar/resource/external/css/myDemo.css. This may not be matched in your sitemap. Jasha

Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread David Legg
Jasha wrote: Your reference to the CSS is relative to the request URI of the page. If the request URI for the page is /foo/bar/page.html your browser will attempt to request the CSS on /foo/bar/resource/external/css/myDemo.css. This may not be matched in your sitemap. That's right and of

well formatted xhtml code

2008-06-24 Thread Johannes Hoechstaedter
Hi, when I serialize my output into html, cocoon produces well readable html source code. But when I switch to xhtml, then it puts everything in one line. Is this changeable? cheers, Johannes - To unsubscribe, e-mail:

RE: well formatted xhtml code

2008-06-24 Thread Jasha Joachimsthal
Hi Johannes, Which class is used for the XHTML serialization (it's in map:components/map:serializers)? Jasha Joachimsthal www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1

Re: well formatted xhtml code

2008-06-24 Thread Johannes Hoechstaedter
There are no serializers. Jasha Joachimsthal schrieb: Hi Johannes, Which class is used for the XHTML serialization (it's in map:components/map:serializers)? Jasha Joachimsthal www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA

Cocoon22 - core.properties and modes with Tomcat

2008-06-24 Thread Hugh Sparks
How do I specify the operating mode when running cocoon under Tomcat? I have a webapp that I built and tested with jetty. It has some changes to core.properties file in: src\main\resources\META_INF\cocoon\properties\dev\core.properties I set the mode to dev in the POM for the

Re: Cocoon22 - core.properties and modes with Tomcat

2008-06-24 Thread Michel Erard
Hi Hugh, you can set the system property org.apache.cocoon.mode while startup -Dorg.apache.cocoon.mode=prod Regards, Mike Am Mittwoch, den 25.06.2008, 01:30 +0200 schrieb Hugh Sparks: org.apache.cocoon.mode - To

[ANN]: Fins 1.0 back-ported to Cocoon 2.1

2008-06-24 Thread Luca Morandini
I hope this will make the day for a few people :) http://www.lucamorandini.it/fins/faq.html Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For