Re: How to avoid duplicated submission by token?

2004-08-22 Thread Michael McGrady
Rick Reumann wrote: >HI, Ping, you have so many different things going on in one action >execute method that it is very difficult to follow everything. Also, you >are doing a lot of things that do not need to be done (usually) from >your action such as calling form.reset(), removing form bean, rem

Re: How to avoid duplicated submission by token?

2004-08-22 Thread Ping Cheung Leung
Thanks Rick. Let me find out what DispatchAction is and then come back. --- Rick Reumann <[EMAIL PROTECTED]> 內容: > HI, Ping, you have so many different things going on > in one action > execute method that it is very difficult to follow > everything. Also, you > are doing a lot of things that do

Re: How to avoid duplicated submission by token?

2004-08-22 Thread Rick Reumann
HI, Ping, you have so many different things going on in one action execute method that it is very difficult to follow everything. Also, you are doing a lot of things that do not need to be done (usually) from your action such as calling form.reset(), removing form bean, removing mappings, etc. You

How to avoid duplicated submission by token?

2004-08-22 Thread Ping Cheung Leung
My attention is to prevent duplicated submission. I have refered to the struts-example. It checks the valid of token by IsValidToken(). However when a form is displayed at the first time, it always is invalid. Moreover, according to the struts-example, it saveToken when it finds error. The behavi