aspose file tools*
The moose likes Servlets and the fly likes Servlet Processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Processing " Watch "Servlet Processing " New topic
Author

Servlet Processing

Ravi Agarawal
Greenhorn

Joined: Aug 30, 2002
Posts: 1
My Servlet takes a lot of time to process. I want to show another servlet while it is being processed. How can i do this.
Please reply soon
Thanks in advance..
Ravi
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
For any process that takes a lot of time, you should consider doing it outside the servlet Thread. Your servlet can start the process and report to the user that it has been started. The object conducting the process can be attached to the session or maybe just have some sort of identifier attached to the session.
The immediate response HTML page can have a timer that tries to reload every N seconds (probably in JavaScript) eventually the long process completes and you can write the result page.
Bill
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Ravi Agarawal:
My Servlet takes a lot of time to process. I want to show another servlet while it is being processed. How can i do this.

Some times back i had posted a message with subject "wait screen" ,please try to locate that thread which will answer ur question.
Regards
Balaji


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Processing