cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franosch, Heike" <frano...@bms.de>
Subject RE: Session handling cocoon - servlet - stylesheet solved
Date Mon, 22 Apr 2002 08:01:52 GMT
Hi Chiths,

no, I did not touch web.xml.

Heike

> -----Original Message-----
> From: Chitharanjan Das [mailto:cdas@accordiasys.com]
> Sent: Friday, April 19, 2002 11:32 PM
> To: cocoon-users@xml.apache.org
> 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:franosch@bms.de] 
> Sent: Friday, April 19, 2002 1:56 AM
> To: cocoon-users@xml.apache.org
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message