Meaningless Drivel is fun!*
The moose likes Struts and the fly likes how to use <s:token> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use <s:token>" Watch "how to use <s:token>" New topic
Author

how to use <s:token>

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

Joined: Oct 07, 2008
Posts: 300
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

Joined: Apr 30, 2007
Posts: 38
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use <s:token>