This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts - Transaction -saveToken(request)

 
sameera k
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic