>> is multiple equal 2?
It calls the action between 2 and 4 times, but usually 3. I was thinking an interceptor would somehow call the action multiple times but maybe that's not possible. I don't fully understand how interceptors call actions. etc yet :) I was testing on a Mac. OSX/Firefox. I will try testing on windows/IE. Thanks > Date: Tue, 5 May 2009 04:08:49 -0200 > Subject: Re: stream result causing action to be called multiple times > From: poulw...@gmail.com > To: user@struts.apache.org > > Hi Andy, > If so maybe the browser is doing it because it doesn't know everything > about this file - size comes to mind. > If i remember correctly some browsers will do that. > > best greetings, > Pawel Wielgus. > > 2009/5/4, Andy <andrh...@hotmail.com>: > > > > Hi, I have an action that returns a stream result type and for some reason > > my action is getting called multiple times: > > > > <result name="attachment" type="stream"> > > <param name="contentType">${attachmentContentType}</param> > > <param name="contentDisposition">filename="${attachmentFileName}"</param> > > </result> > > > > This causes some inefficiency since the action is retrieving an image from > > the database on each call. IDeas? > > > > I am on 2.16 and using default interceptor stack. > > > > Thanks > > > > _________________________________________________________________ > > Hotmail® goes with you. > > http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009