I probably have found an error. It needs short description.
Each of ActionForms in my app uses two Action classes. One is
'typical' form launched after  submitting a form. Its execute method
forwards to next Action which sets data for new form before displaying
it.
[..] --> PreAction1 --> ActionForm1 --> Action1 --> PreAction2 -->
ActionForm2 --> [...]

Now, I guess that all actions generate GETs/POSTs. My logs prove it.
Submiting a form proceeds without an error if its method=="GET". With
POST I still get it. Everything would be fine if I could use only GET
method.

My question is, how can i get rid of this 'multi submit' error? I use
PreActions mainly for prepopulating data in new form. Maybe there is
some other nice way to do it?

On 6/17/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 6/17/05, Janek Ziniewicz <[EMAIL PROTECTED]> wrote:
> > SimpleDispatchAction inherits from Action class not from DispatchAction.
> > At http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved you
> > can read:
> > "You can use a dispatch action without requiring configuration of a
> > parameter attribute in struts-config.xml."
> >
> > My problem is that each of my forms generates two POSTs with one click. I
> > am not sure if the error comes from SimpleDispatchAction although it
> > appeared when I 've started using it.  Its code looks ok.
> <...removed...>
> > Are there any 'typical' situations when one click generates two submits?
> 
> No, this is not typical. Get some HTTP sniffer (for Firefox I'd
> recommend LiveHttpHeaders) and see what is happening. Also, in Tomcat
> mail-list someone posted a bug, that for each request servlet is
> called three times. Maybe it is related if you use non-stable Tomcat
> build. But that one was three times, not two.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
Pozdrawiam,
Janek Ziniewicz
gg: 902858
irc.freenode.net: #gore, #dub

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to