You could always use a holder page and a meta refresh.

For example;

Page 1 - Has the form on which the details are entered
| 
[submits to]
|
Action A which stores the details of the query
|
[forwards to]
|
Page 2 which has a meta refresh
(http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm)
|
[refresh redirects to]
|
Action B which gets the results of the query
|
[forwards to]
|
Page 3 which displays the results.


You can then do two things;

1) Increase the meta refresh time in Page 2 to slow down requests.
2) Store the delay in the users session in Action A and if Action B is
called before the delay has completed you redirect the user to Page 2
instead of Page 3.


Hope this is useful,

Al.
-----Original Message-----
From: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2007 15:28
To: Struts Users Mailing List
Subject: Re: slowing down action execution time


I need to initially slow down and after a few minutes completely  
block access to aa site to logged-users and/or remote ip addresses  
that reads too many pages too fast.

It's something like controlling that the site is not mirrored.

I don't remember where but I think I read somewhere that's not  
possibile to call Thread methods inside a servlet container.

Anyone can confirm this ?

Thanks

Il giorno 17/lug/07, alle ore 16:25, Leon Rosenberg ha scritto:

> actually you named it.
> Thread.sleep().
>
> only for debugging purposes of course :-)
> regards
> leon
>
> On 7/17/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> what's the best method to slow an action execution time ? Something 
>> like Thread.sleep(...).
>>
>> Thanks !
>>
>> --
>> Ing. Andrea Vettori
>> Consulente per l'Information Technology
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>

--
Ing. Andrea Vettori
Consulente per l'Information Technology



---------------------------------------------------------------------
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]

Reply via email to