This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to display an Intermediate Page during a form Submission ?