You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <da...@newfield.org> on 2010/07/16 19:10:16 UTC

Re: Dispatch action calling a function multiple times depending on browser

On 7/16/10 1:06 PM, abhishek jain wrote:
> The dispatch action is calling some of the functions of the action class
> multiple times, it calls it twice for mozilla and single time in chrome.

One common error that will appear to result in this behavior are images 
without a specified src, resulting in the base url being fetched an 
additional time.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch action calling a function multiple times depending on browser

Posted by Rupali Gupta <r....@mpstechnologies.com>.
Hi Abhishek

The reason for request going two times to dispatch action in Mozilla may 
be its Prefetching feature for caching

When any article contains the following tag:
<link rel="next" href="2.html">

While fetching the original article, Mozilla fetches the next article 
also in its cache, if this tag is present in html. Hence, a new request 
hits the server for fetching this "next" item and logs in access log on 
server

Please refer to the following URL to know the technical Analysis for 
this feature: https://developer.mozilla.org/en/link_prefetching_faq

Try to stop prefetching in mozila by following steps given in above 
link. You may get the correct solution..

Thanks
Rupali

On 7/16/2010 10:40 PM, Dale Newfield wrote:
> On 7/16/10 1:06 PM, abhishek jain wrote:
>> The dispatch action is calling some of the functions of the action class
>> multiple times, it calls it twice for mozilla and single time in chrome.
>
> One common error that will appear to result in this behavior are 
> images without a specified src, resulting in the base url being 
> fetched an additional time.
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org