The class is DefinitionDispatcherWithTokenAction and it's FINAL!! Ugh. So much for extending it.
> -----Original Message----- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: mardi 25 mars 2003 16:00 > To: Struts Users Mailing List > Subject: Re: using Tokens with Tiles > > > I you want to keep this URL style, you should extend > [forward.do]Action (I don't know the class name) to set a token, > and define a new mapping in struts-config.xml > "setTokenAndForward.do" that you can use the same way on page that need a > token to be set : > http://localhost:8080/webapp/setTokenAndForward.do?def=main > > Nico. > > > I'm using Tiles to display the pages, with the Tiles forward.do action > > passing in the def parameter: > > > > http://localhost:8080/webapp/forward.do?def=main > > > > I guess I could add a Struts action for every tile definition > but I really > > like there has to be a better way! > > > > > -----Original Message----- > > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > > > Sent: mardi 25 mars 2003 15:45 > > > To: Struts Users Mailing List > > > Subject: Re: using Tokens with Tiles > > > > > > > > > You should ALWAYS use an action to display a page. I know lot it > > > looks simplier to use JSP URL instead of defining a new > > > action in struts-config... But in your case you see that not > > > using the controler brings you to duplicate submit > > > problems. > > > > > > Nico. > > > > > > > > > > I'm trying to prevent the user from submitting a form and > then doing a > > > > refresh and unknowingly submitting it twice. I've read the > about Struts > > > > support for tokens, and I understand how to use it when an > > > action is called > > > > before the form is displayed. But in my case no action is > > > called before the > > > > form is displayed and I don't know where to call > > > saveToken(request). Is it > > > > possible to use a token in this situation? If not is there > > > another approach > > > > I can use? > > > > > > > > Michael > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]