Thanks woodchuck, but the behavior is happening with any request, not just a
form submit using a button.

In the troubleshooting I've done since the post, I stepped out of the entire
call stack of methods and found out that the second hit on the breakpoint
comes when I step out of CoyoteAdapter.server(Request, Response). We're
using Tomcat 5.0.28. Maybe I'll post on the Tomcat list. I have no idea what
could be going on there ??

-----Original Message-----
From: Woodchuck [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 11:53 AM
To: Struts Users Mailing List
Subject: Re: Double posting problem


check to see if you are using image buttons <input type="image"> to submit
your forms.

these types of buttons submit your form by default.  if you define
javascript functions for these buttons to do your submitting that would be
the reason for the double submits your getting.  you can get around this
simply by returning false for the event like this:

<input type="image" onclick="doMySubmitFunction(); return false;">

this way, only your javascript function will be the one submitting.

just something to watch out for.

woodchuck


--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> From: "Barnett, Brian W." <[EMAIL PROTECTED]>
> 
> > We've spent the last couple of weeks enhancing our web app and now
> every
> > get/post to Tomcat from our web app is coming in twice.
> >
> > Any ideas on what I can check?
> 
> Do you have any Filters?  Check that chain.doFilter(...) is only 
> called *once*.
> 
> --
> Wendy Smoak
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/

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

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

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

Reply via email to