struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: stream result causing action to be called multiple times
Date Tue, 05 May 2009 06:08:49 GMT
Hi Andy,
is multiple equal 2?
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 <andrhahn@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message