« Return to Thread: Anyone else using Groovy?

Re: actions that take long time

by Aaron Porter-2 :: Rate this Message:

Reply to Author | View in Thread

Nothing exists now but that does sound like an interesting idea and Stripe's Resolutions could make
it work really well. It would probably be an annotation on the ActionBean's event method, maybe
@DelayedAction("/your_wait_page.jsp"). When the event was going to be invoked it would spawn a new
thread to do the processing and do a forward to the wait page. The wait page could use JavaScript to
check if the processing was complete or fallback to a <meta http-equiv="refresh" content="2"> inside
of a <noscript>.

I'll have to play around with that idea!

Aaron

Leonard Gestrin wrote:

> Hello,
> I was wondering if anything in Stripes exists to support time-consuming
> operation. Let's say, user hits an action that might take considerable
> amount of time. In such cases, application should probably display
> progress bar, spinner or something to tell user that operation is in
> progress. It would be nice if it could show progress status and allow
> user to cancel.
>
> it appears that this could probably be done with custom dispatcher
> servlet, which would spawn new thread for every action that implements
> certain interface (DelayedAction for example), so that servlet would
> check on the
> status and send back to the browser special page that would check back
> after some time with a servlet.  We've done something like with Strut's
> actions and it worked pretty well.
>
> It sounds like pretty common problem that people should face. It would
> be interesting to know what people think - if it is reasonable approach
> and how other folks solving this issue.
>
> Thanks
> Leonard
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
Stripes-users@...
https://lists.sourceforge.net/lists/listinfo/stripes-users

 « Return to Thread: Anyone else using Groovy?