Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 49426 invoked from network); 27 Aug 2007 08:10:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2007 08:10:07 -0000 Received: (qmail 99449 invoked by uid 500); 27 Aug 2007 08:09:53 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 99430 invoked by uid 500); 27 Aug 2007 08:09:53 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 99419 invoked by uid 99); 27 Aug 2007 08:09:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 01:09:53 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.255.97.33] (HELO mail2.swisslife.ch) (80.255.97.33) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 08:09:47 +0000 Received: from mail2.swisslife.ch (localhost [127.0.0.1]) by mail2.swisslife.ch (mail2.swisslife.ch) with SMTP id D9C1294590 for ; Mon, 27 Aug 2007 10:09:25 +0200 (MEST) Received: from ns5116.swiss.group4net.com (unknown [134.38.96.184]) by mail2.swisslife.ch (mail2.swisslife.ch) with ESMTP id 71B6C9458F for ; Mon, 27 Aug 2007 10:09:25 +0200 (MEST) Received: from NS5119.swiss.group4net.com ([134.38.124.172]) by ns5116.swiss.group4net.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Aug 2007 10:09:25 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7E881.9516D7AB" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Transaction Token Problem Date: Mon, 27 Aug 2007 10:09:24 +0200 Message-ID: <3A99D0EF16071246B9D461DF9DD6C88001EF132B@NS5119.swiss.group4net.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Transaction Token Problem Thread-Index: AcfogZTaX68uSMyoQ0ygAukP4UXgaA== From: To: X-OriginalArrivalTime: 27 Aug 2007 08:09:25.0374 (UTC) FILETIME=[9520F9E0:01C7E881] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7E881.9516D7AB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi,=20 Im having some trouble implementing the Transaction Token into my Application.=20 Ive checked the Data that is being written - and it seems one of the session-keys isnt being written. =20 HttpSession session1 =3D req.getSession(false); String saved1 =3D (String) session1.getAttribute(Globals.TRANSACTION_TOKEN_KEY); = System.out.println("ReqIN=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D"+ saved1); String tokenBefore =3D req.getParameter(Globals.TOKEN_KEY); =20 System.out.println("ReqIN-RequestTokenBeforeSave:=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" + tokenBefore); saveToken(req); String tokenAfter =3D req.getParameter(Globals.TOKEN_KEY); =20 System.out.println("ReqIN-RequestTokenAfterSave:=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"+ tokenAfter); HttpSession session2 =3D req.getSession(false); String saved2 =3D (String) session2.getAttribute(Globals.TRANSACTION_TOKEN_KEY); = System.out.println("ReqIN=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D"+ saved2); =20 saveToken seems to save the Globals.TRANSACTION_TOKEN_KEY correctly - but the Globals.TOKEN_KEY always stays empty... how can this be? and how can I fix that? =20 thanks guys. =20 regards, Tom ------_=_NextPart_001_01C7E881.9516D7AB--