cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitharanjan Das" <>
Subject RE: Session handling cocoon - servlet - stylesheet solved
Date Fri, 19 Apr 2002 21:31:32 GMT

Thanks for the effort...
1 question though, did U have to register the servlet in the web.xml.
Id so could U hust show the listing of your web.xml as well..

-----Original Message-----
From: Franosch, Heike [] 
Sent: Friday, April 19, 2002 1:56 AM
Subject: Session handling cocoon - servlet - stylesheet solved

Hi all,

thanks to Vadim, I got it running.
My situation: I already have a servlet that outputs xml data and I want
to use cocoon to select dynamically the suitable stylesheet. I have to
put the session-id to the output document (inserting through xsl) and
handling my session data in my servlet.
It took some time for me to understand how all this should work (and a
lot of patience from Vadim ;-)
I attach my working code, just in case someone wants to do a similar
thing and is in need of some example code.

Things I had to be aware of:
1) It is important that my servlet is deployed under the same context
   as cocoon, otherwise the session handling won't do.
2) The MyRequestAction is necessary to create a session and make it 
   available to the sitemap, so the id can be accessed through the
   stylesheet and cat be manually attached to the servlet URL
3) I know this is not the "normal" way of using cocoon, but it works,
   it is really great ;-))

Thank you all


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message