You know, I had this same problem, and I did solve it. At first, I thought it was struts, but I was surprised to find it was the html: I found I had an invalid parameter in my html. I had copied this particular html to several pages, and somehow this was resulting in some actions (related to page loading) being executing twice. I can't remember exactly what html tag it was, but I do know for a fact that once I fixed the html, the problem went away.
This does not preclude the possibility that it is also servlet container or browser related -- perhaps a combination of the html plus one of the above. I was using Resin with IExplorer. My suggestion would be to remove chunks of your page, or start with <html></html> and build up, and see if you can determine cause there. That's how I finally tracked it down. Mike -----Original Message----- Print out the user agent in both cases. I think that IE does that to determine the mime type for an unknown extension (rather than use the server mime type like they should). I think the user agent string tha the browser sends is different in the type-determining case. You can just match on that and return the content type only. dave > > -----Original Message----- > > From: T. Wheeler [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 19, 2002 09:04 > > To: Struts Users Mailing List > > Subject: Some ActionClasses Are Invoked Twice, Why? > > I have found a bug in a Struts application I am developing at > > work, and > > I am having trouble figuring out what might be causing it. I > > will give > > the brief overview below, and be happy to dive into as much detail as > > might be needed. > > > > The problem: > > I have started adding logging to several of my action classes and have > > started noticing that some of them are being called twice in quick > > succession. I know for a fact that it's not a user double-clicking to > > submit a form; I can reproduce it (only some of the ActionClasses have > > this problem, but they have it consistently. To help illustrate the > > problem, I have an excerpt of the log below, showing that the > > ActionClass was called twice: > > > > // the first time the action class was called > > 16:41:11,897 - Checking required permissions > > 16:41:11,898 - Starting performTask() method > > 16:41:11,898 - performTask(): Got session attributes; > > 16:41:11,900 - performTask(): Removing old contexts > > 16:41:11,900 - performTask(): Calling getAvailableContexts() > > 16:41:12,728 - performTask(): Got 2 contexts > > 16:41:12,740 - performTask(): Adding LVBean[Example 1, 0001] > > 16:41:12,741 - performTask(): Adding LVBean[Example 2, 0026] > > 16:41:12,741 - performTask(): Setting roles vector > > 16:41:12,742 - Ending performTask() method > > > > // the second time the action class was called, < 1 second later > > 16:41:13,039 - Checking required permissions > > 16:41:13,040 - Starting performTask() method > > 16:41:13,040 - performTask(): Got session attributes; > > 16:41:13,043 - performTask(): Removing old contexts > > 16:41:13,044 - performTask(): Calling getAvailableContexts() > > 16:41:13,853 - performTask(): Got 2 contexts > > 16:41:13,854 - performTask(): Adding LVBean[Example 1, 0001] > > 16:41:13,854 - performTask(): Adding LVBean[Example 2, 0026] > > 16:41:13,855 - performTask(): Setting roles vector > > 16:41:13,855 - Ending performTask() method > > > > Again, I will be happy to post code samples upon request, but I don't > > want to clutter the issue quite yet. > > > > Struts Version- > > I am using a Struts nightly build from December 2001, but I can > > reproduce the problem under the most recent 1.1 beta of > > Struts (which I > > downloaded earlier today). > > > > The Server- > > RedHat Linux 7.2, fully patched, running with Caucho > > Resin-2.1.2 and Sun > > JDK 1.3.1_04 (latest 1.3.1 JVM). I can reproduce this problem on > > multiple machines with several different versions of Resin (up to > > 2.1.4). > > > > Any ideas at what might be causing this, or how to diagnose it? > > > > Thanks in advance for any help or advice you can give. > > > > Tom > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Dave Weis "I believe there are more instances of the abridgment [EMAIL PROTECTED] of the freedom of the people by gradual and silent encroachments of those in power than by violent and sudden usurpations."- James Madison -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

