Page Loading ....please wait....... [in JSP]

Is there any way to make a JSP loading screen for pages that take a long

time to load?

For example, I have a JSP page that takes value from a hardware which take a long time. During that time I'd like to have the page display a message saying

"Please wait while the page loads".

I tried to do something with JavaScript that displays a message Body

onLoad and then it goes away when the page finishes loading, but it

doesnt work wen i use it in jsp..seems to work only in html pages.

Any ideas on a way I could do this with JSP?

Thank you!

[594 byte] By [ron82a] at [2007-11-26 16:30:29]
# 1
What happens when u place a "Loading..." message in a DIV / SPAN field and then hidding the DIV / SPAN field after onLoad="hideFunction()" ?I think this normally works no matter if it is a JSP or a HTML file... :)
RahulSharnaa at 2007-7-8 22:54:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
i have already tried that... wat happens is ..the java codes in the jsp executes first which take a lot of time... once all java codes are executed..then only it calls the onload function which will inturn call the part inside div or span..
ron82a at 2007-7-8 22:54:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...