struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Thomas.Zygadlew...@swisslife.ch>
Subject Transaction Token Problem
Date Mon, 27 Aug 2007 08:09:24 GMT
Hi, 
Im having some trouble implementing the Transaction Token into my
Application. 
Ive checked the Data that is being written - and it seems one of the
session-keys isnt being written.
 
        HttpSession session1 = req.getSession(false);
        String saved1 = (String)
session1.getAttribute(Globals.TRANSACTION_TOKEN_KEY);
        System.out.println("ReqIN======================"+ saved1);
        String tokenBefore = req.getParameter(Globals.TOKEN_KEY);
 
System.out.println("ReqIN-RequestTokenBeforeSave:======================"
+ tokenBefore);
     saveToken(req);
        String tokenAfter = req.getParameter(Globals.TOKEN_KEY);
 
System.out.println("ReqIN-RequestTokenAfterSave:======================"+
tokenAfter);
        HttpSession session2 = req.getSession(false);
        String saved2 = (String)
session2.getAttribute(Globals.TRANSACTION_TOKEN_KEY);
        System.out.println("ReqIN======================"+ saved2);
 
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?
 
thanks guys.
 
regards, Tom

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message