Deactivate a button until date is fully loaded

HI,Can anyone help me in checking whether the data is completely loaded in a jsp page. In my application I have to disable a button till a list is completely loaded but I'm not getting how to check for data load.Help is greatly appreciated.Thanks,Sri
[286 byte] By [Sri999a] at [2007-11-26 15:52:48]
# 1

When you write JSP, it compiles into a web page before it is served to the client. Therefore, there are only two possible situations:

1) The data is loaded to your jsp before you serve the page, in which case, the button can't possibly be active, because the page isn't served (i.e. the data is available to you when you construct the page, and you embed that data into the jsp, instead of letting the client load it from elsewhere.

2) The data is loaded by the client after you serve the page, in which case, controlling the behavior of the button must be done on the client side (unless you're doing something like ajax). Therefore, you won't be using Java to do it. You'll want to look into what various forms of dynamic HTML can do for you (i.e. javascript, or active x).

- Adam

guitar_man_Fa at 2007-7-8 22:13:09 > top of Java-index,Java Essentials,Java Programming...