jQuery in Action, 3rd edition
The moose likes Struts and the fly likes Problem with Token mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Token mechanism" Watch "Problem with Token mechanism" New topic

Problem with Token mechanism

ajay bora

Joined: Mar 31, 2006
Posts: 3
I am experiencing a strange phenomenon with the usage of tokens in my programs. Tokens are supposed to be stored as an hidden parameter in the form and it is to be stored only when he explicitly call saveToken() in the action class. But my tokens are some how disabling my other hidden parameters in my forms . Due to this reason i am not able to submit my forms. I have two jsps which have the same form bean and the second jsp is the jsp which saves all the information .To prevent users from saving twice i used tokens . The problem i am facing right now is that when user clicks submit in step2. It is going back to step1 . Actually i have three steps.
Step1 ,step2 and step save. Step1 and step2 are in same jsp and they are displayed using DIV's and step3 is a different jsp. These two different jsp's are having different beans. Is there any problem in this. In order to solve this problem i had to use sessions and set some values to suggest form completion ,but i dont feel its a good way to do . Can any one clarify this problem for me .
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem with Token mechanism
It's not a secret anymore!