Finally figured this one out! I am using the YSlow plugin to Firefox and it is causing a second HTTP GET to gather information about the site. Thanks for the heads up on using the "Live HTTP headers" plugin to help catch this beast.
aum strut wrote: > > well i did what you have mntioned in ur post but still the problem was > there > action was exectued twice so i removed the javascript and it worked > > still i will look again what i did in order to solve this problem... > > On Thu, Oct 16, 2008 at 9:38 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > >> How were you submitting via JavaScript? I was just working on an app, >> and forgot (face-palm-style) that you do have to 'return false;' in an >> onclick handler for a form submission button... It's an old rule, I >> know, but if you forget, then your JS code will submit the form and your >> form will also be submitted as well through the normal mechanism. >> Returning false from your handler tells the page not to submit. I don't >> think this is the OP's issue, but thought I would chime in. >> >> -Wes >> >> On Thu, 2008-10-16 at 09:27 +0530, aum strut wrote: >> > Hi, >> > >> > i faced this issue a lot while developing some sample application in >> which >> > my action was getting called twice, >> > >> > but i was using javascript for submitting the action and when i removed >> > javascript for submitting form the problem just disappears >> > >> > On Thu, Oct 16, 2008 at 3:07 AM, Dave Newton <[EMAIL PROTECTED]> >> wrote: >> > >> > > --- On Wed, 10/15/08, wskent wrote: >> > > > This is happening with JavaScript turned off or on. It is >> > > > also happening in Tomcat 6. This behavior is not happening >> > > > in IE 7 on either Tomcat 6 or JBoss 4.2 . I am also seeing >> > > > this in a Struts 2.1.2 application running in JBoss 4.2 >> > > > with the Firefox 3.0.3 browser. So far this looks like Firefox >> > > > is causing Struts 2 to execute the action twice? >> > > >> > > There must be more to it than that, because I run a few S2 apps (both >> S2.0 >> > > and S2.1) under FF3 w/o any issues. >> > > >> > > Dave >> > > >> > > >> > > --------------------------------------------------------------------- >> > > 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] >> >> > > -- View this message in context: http://www.nabble.com/Struts-2-actions-executing-twice-tp19983781p20015747.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]