• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Token mechanism

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic