Hi Joerg Many thanks for your tip. Calling the servlet within a jsp-file ends in the same session. The jsp-file constists of only on line: <jsp:forward page="/v2?action=callSGeneric&veAction=redirect&output=.xml"/> The problem that I have now is that the returned XML data misses two chars. at the end. I got '</Resul' instead of '</Result>'.
Do you see any solution ... many thanks in advance Raffaele Merico LESS Informatik AG B�hnirainstrasse 14 CH-8800 Thalwil Tel: +41 1 723 12 22 Dir: +41 1 723 92 45 Fax: +41 1 723 12 23 mailto:[EMAIL PROTECTED] -----Urspr�ngliche Nachricht----- Von: Joerg Heinicke [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Juli 2004 13:35 An: [EMAIL PROTECTED] Betreff: Re: map:generate -> servlet -> empty session problem On 21.07.2004 12:53, Merico Raffaele wrote: > Hi > > I'm using Cocoon 2.1.5.1 under Tomcat 4.0.4. > I have a servlet tixj.VE2000i does a login and starts a session. > When I try to invoke the servlet again to generate some XML data using the > following sitemap it always has an empty session. > > <map:match pattern="**VersicherterSuchen.html"> > <map:generate src="{request:concat(scheme, '://', serverName, ':', > serverPort, '/ve2000ic/servlet/tixj.VE2000i?', queryString)}"/> You should not access your servlet in that way is it starts a new external request (over http again, and with a new request object, so without session). The JSPGenerator (which is indeed a ServletGenerator as Unico stated somewhere in the Javadocs IIRC) might be the solution for you. You can of course also add the session info into the above URL string, but that's not the perfect solution IMO. Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
