using Tokens with Tiles

2003-03-25 Thread Michael Mattox
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

Re: using Tokens with Tiles

2003-03-25 Thread Nicolas De Loof
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

RE: using Tokens with Tiles

2003-03-25 Thread Andrew Hill
Message- From: Michael Mattox [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 March 2003 22:37 To: Struts Users Mailing List Subject: using Tokens with Tiles 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

RE: using Tokens with Tiles

2003-03-25 Thread Michael Mattox
: 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

RE: using Tokens with Tiles

2003-03-25 Thread Mick . Knutson
:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:37 PM To: Struts Users Mailing List Subject: using Tokens with Tiles 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

RE: using Tokens with Tiles

2003-03-25 Thread Mick . Knutson
To: [EMAIL PROTECTED] Subject: RE: using Tokens with Tiles I would actually like to see an example of this if you have some. _ 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

RE: using Tokens with Tiles

2003-03-25 Thread Michael Mattox
You could always have just a single BasicAction class that merely sets a token and forwards to the jsp - and reuse this action class in the various mappings wherever a less generic one isnt required. That's what I'm doing with the Tiles forward action. Maybe I should subclass it and do a

RE: using Tokens with Tiles

2003-03-25 Thread Mick . Knutson
/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

RE: using Tokens with Tiles

2003-03-25 Thread Andrew Hill
] Sent: Tuesday, 25 March 2003 22:54 To: Struts Users Mailing List Subject: RE: using Tokens with Tiles You could always have just a single BasicAction class that merely sets a token and forwards to the jsp - and reuse this action class in the various mappings wherever a less generic one isnt

Re: using Tokens with Tiles

2003-03-25 Thread Nicolas De Loof
! -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

RE: using Tokens with Tiles

2003-03-25 Thread Michael Mattox
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. if I need to change it I can change the Tile definition, I wouldn't need to change it every place it's used. Plus, it looks cleaner to the user with a friendly URL.

RE: using Tokens with Tiles

2003-03-25 Thread Mick . Knutson
Mobile: 079.726.14.26 _ -Original Message- From: Michael Mattox [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 4:01 PM To: Struts Users Mailing List Subject: RE: using Tokens with Tiles But if you do it with an action, you only have to change those declarations in one

RE: using Tokens with Tiles

2003-03-25 Thread Mick . Knutson
: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 4:00 PM 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

RE: using Tokens with Tiles

2003-03-25 Thread Michael Mattox
the token methods are struts methods, so they need to be called inside actions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi 25 mars 2003 16:09 To: [EMAIL PROTECTED] Subject: RE: using Tokens with Tiles How would this differ from just creating

RE: using Tokens with Tiles

2003-03-25 Thread Michael Mattox
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