wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Token mechanism" Watch "Problem with Token mechanism" New topic
Author

Problem with Token mechanism

ajay bora
Greenhorn

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
 
Similar Threads
can anyone explain token mechansim in struts
Multiple Form Handling in JSP and Servlets for File Uploading
Two jsps having same form beans are similar or not
Display Check Boxes & Dropdowns in Struts with search results
<h:commandLink> is not working in JSF 2.0