Ping Cheung Leung wrote: >I have a web page presented by JSP only. >No data to input. It contains several links only. > >If I click one of the links on the web page, >It will go to another web page with a form to input >data. >If I want the form to have a token generated >when the form first appears. >How can I code it? > >The procedure saveToken() is inside an Action class. >However the JSP file does not have a >corresponding ValidatorForm class and Action class. > >How can a token be generated in a form when the form >first appears? >For instance, when the form is re-directed from a JSP >file or others? > >
You need to do a little reading or a little research into the code on how these work. Essentially the idea is that a token is saved in request and in session scopes and the logic is determined by those two being compared against each other to allow us to determine whether or not a person should be able to access the Action class at all. So, you need to understand that the basic idea is saving, resetting, etc. tokens to compare against each other. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]