wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts - Transaction -saveToken(request) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - Transaction -saveToken(request)" Watch "Struts - Transaction -saveToken(request)" New topic
Author

Struts - Transaction -saveToken(request)

sameera k
Greenhorn

Joined: Oct 27, 2000
Posts: 5
Hi guys,
has anyone used Transaction- saveToken(request)
I am using it in my code in and its not woking..i dont know why
I have this code in my perform method od Action class
// Line 1 now start transaction for status and delete
// Line 2 resetToken(request); i wasn't using this here before but since Line 6 was returning fasle i intrduced this line
//Line 3
System.out.println(request.getSession().getAttribute(Action.TRANSACTION_TOKEN_KEY));
//Line 4
saveToken(request);
//Line 5
System.out.println(request.getSession().getAttribute(Action.TRANSACTION_TOKEN_KEY));
//Line 6
System.out.println("Calling delete"+isTokenValid(request)); -- here it is retuning false
can anyone help me


sameera kocharekar
 
wood burning stoves
 
subject: Struts - Transaction -saveToken(request)