O'Reilly logo

Struts 2 Design and Programming: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Progress Meters

What do you do if one of your actions takes five minutes to complete and you don’t want your user worried or sleepy? Show a progress meter! In a web application writing a progress meter is not an easy task, you would spend at least days on it. Happily, Struts has an easy to use interceptor, Execute and Wait, that is good at emulating a progress meter for heavy tasks.

This chapter shows you how to use this interceptor.

The Execute and Wait Interceptor

Time consuming tasks, ones that take minutes, should be handled differently in web applications than they are in desktop programs. They pose more risks in the former because HTTP connections may time out, something not possibly occurring in the latter.

The Execute and Wait ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required