how to disable the jsp page while downloading or uploading !!!

I've created a jsp page in which import and export options are there. On import it import the file from the local system and put it into the database, it is around 30-50 lakhs of datas. So, it's taking a huge amount of time for downloading and uploading. Could anyone tell me how to do that so when downloading i want to disable the jsp page, so no-one can go to any other link until it finishes. In that jsp page i have many tabs, so for one tab if it is downloading a pop up menu should come and it start downloading and no-one can even do anything until it completed.

Or any other way i can tackle this situation? Please give me any other suggestions or any other way to tackle this one in jsp page. I'm using jsp and struts.

please reply for this query...

in advance thanks......

[813 byte] By [Navneet_Singha] at [2007-11-26 22:21:25]
# 1
HItry this approach..Instead forwarding to your jsp, first forward the response to some blank jsp. In this jsp you place some custom message like "Please wait ... ". Once the desired operation is finshed, submit the form to show your jsp.
maduri.srinivasa at 2007-7-10 11:19:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks for this reply...... i'm using struts, for the action i'm forwarding it to another jsp page by mapping(), so how will it come back it to previous page and how would i know whether the job has finished or not. Could u be more precise...
Navneet_Singha at 2007-7-10 11:19:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

hi

Show the progress bar in the blank jsp and try submitting the page at regular intervals either using ajax or hidden inner frame technique to see whether your operation is finished or not. Once that is done,

as you are using struts, make the scope of your form as session, and show your jsp back.

or provide user some refresh button in blank jsp to check whether the operation is finished or not.

maduri.srinivasa at 2007-7-10 11:19:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...