I want to display a progress-bar in my Struts1.2 application. When a user clicks a button on a JSP page, some heavy background processing takes place and the results (a list of records) is displayed in the same window.I want to display a progress-bar while the list of records is being retrieved. I read an article on ONJava.com, which uses threads to achieve this. I am not too keen on using threads, though. I want the snippet of code.