But if you do it with an action, you only have to change those declarations in one place, not every place that it is used.
Plus, it looks cleaner to the user with a friendly URL. _____ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _____ -----Original Message----- From: Michael Mattox [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:50 PM To: Struts Users Mailing List Subject: RE: using Tokens with Tiles 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] Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]