I have a scenario like i am submitting a form and to get the response it takes around 4-5 mins.
What i want is how can i display an Intermediate page with one image during the time interval ?
And once the output is constructed properly that Intermediate page should be blocked
You need two servlets for this. The first serlvet takes the form submission and launches a new thread to do the work. It then redirects to your intermediary page. The second servlet periodically polls the HttpSession to see if the work is done. Then it redirects to the intermediate or done page as appropriate.
Some browsers timeout after 5 minutes. (under certain conditions; I'm not clear on exactly what they are as at other times they appear to wait forever; maybe a VPN thing.) If a request is estimated to take 4-5 minutes, this doesn't leave a lot of buffer.
subject: How to display an Intermediate Page during a form Submission ?