Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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