Hi again! I'm still stuck. I've tried a lot of things without success. Does anyone work with cocoon and servlets, and session attributes? If so, please read below (my previous mail)! thanks!
-- Mauro On Mon, 18 Nov 2002, Mauro Daniel Ardolino wrote: > Hi! I have a problem using cocoon with other servlets. > I have a servlet that outputs a xml and then in a pipeline I apply a xsl > transformation. This works well, but this servlet needs a session > parameter. > > Inside the servlet I wrote: > > HttpSession session= request.getSession(); > TreeMap cart= (TreeMap) session.getAttribute("cart") > > But I cannot obtain the "cart" parameter. If I put the "false" parameter > to the request.getSession(), I obtain an exception. > > So I have to think that cocoon is not passing the session to this servlet. > I have to say that other servlet adds the "cart" parameter to the session, > of course. > > Here's a copy of the pipeline: > > <map:match pattern="CheckoutPage.html"> > <map:generate src="http://delta:18080/ProductSelectionDemo1/checkoutPage"/> > <map:transform src="style/CheckoutPage_html.xsl" type="xslt"/> > <map:serialize type="html"/> > </map:match> > > Must I do something special to pass the session to this servlet? > (the servlet url is "http://delta:18080/ProductSelectionDemo1/checkoutPage") > > Thanks in advance. > > -- Mauro > > -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>