Hi Chiths,
no, I did not touch web.xml.
Heike
-Original Message-
From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 11:32 PM
To: [EMAIL PROTECTED]
Subject: RE: Session handling cocoon - servlet - stylesheet solved
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..
Regds,
Chiths
-Original Message-
From: Franosch, Heike [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 1:56 AM
To: [EMAIL PROTECTED]
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
path
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,
and
it is really great ;-))
Thank you all
Heike
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]