If you don't limit yourself to what Struts can do, you could use either XHR 
(polling for data) or iframes (there is a trick to receive data as it becomes 
available, without polling).  It depends on how comfortable you are with 
JavaScript.

John


On 1/21/11 1:12 AM, "Daniel Gerber" <daniel.ger...@me.com> wrote:

Hi,
I'm currently implementing a very simple web application with Struts2. It 
basically works as follows: A user enters two keywords in the index.jsp page 
and then, a rather complex algorithm (takes 15-30s to complete) gets started 
with those two keywords as parameters and shows those results in a 
showResults.jsp page. The thing is, that it's unacceptable for users to wait 
this long without any change in the view. My question is now: due to the fact 
that this algorithm generates viewable results after a view seconds, how is it 
possible with Struts2 to display those results as they are produced.

Cheers,
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org


Reply via email to