Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use <s:token>

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How to use <s:token> in strut.


I did like this
In useAdd.jsp


userList.jsp


and in strut.xml


and inTokenInterceptor.properties

struts.message.invalid.token=You already Submitted the form.

But when i try to add the user .
It show the message

The form has already been processed or no token was supplied, please try again.


I am unable to understand why this message is coming and from where,

Please help me.

Thanks






 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any body tell me where i wrong.
So that this message is coming

The form has already been processed or no token was supplied, please try again.
 
Mudit Srivastava
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use tokenSessionInterceptor instead. Rather than returning the invalid.token when it detects a duplicate request, it blocks the duplicate request and returns the result from the initial request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic