jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes How to stop a running task initiated by a servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to stop a running task initiated by a servlet?" Watch "How to stop a running task initiated by a servlet?" New topic
Author

How to stop a running task initiated by a servlet?

david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 133
Hi,

I have a jsp page which user can select file(s) and select submit, then the servlet get the file(log) name and start reading the file in realtime(do something like send email if log file contains error). Then user can select another file to read and so on. This can be done. The problem is that later (e.g. two days later) if user choose to stop reading one of the log that is being read, what is the method/way to do that?

Thanks,

David
Arun Kumar
Ranch Hand

Joined: Oct 10, 2007
Posts: 30
you could have a UI displaying the status for file processing along with controls to stop/start processing.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to stop a running task initiated by a servlet?
 
Similar Threads
java.lang.ClassNotFoundException: When including Applet in JSP
logging lifecyle events of servlet
Read file from localhost?
NX:IOExceptions What to do?
Jar File