You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Al...@divintech.com on 2002/11/13 02:21:40 UTC

Stopping an action

This is not necessarily a Struts problem, but since I am using Struts for 
this.. I was wondering if anyone could give me a hand.. 

How would I stop an action that has already started executing ? In other 
words, say the user started an action, which is fairly long and processor 
intensive. In order to make the app more responsive I just start a 
separate thread to do the work. However, I wonder, how can the user stop 
the thread that was started from executing ? For example, the user selects 
an action, its starts executing (as I mentioned it is quite i/o + 
processor intensive), and the user suddenly realizes that he/she has 
selected the wrong thing... It is not like it is a regular application, 
where they could kill the process on their local machine... 
I was thinking of putting together something like a monitor, that would 
enable the user to kill the job, but it seems kinda crude... Does anyone 
know a good approach to this ? Any hints would be greatly appreciated...

Thanks,

Alex Kotchnev
Diversified Information Technologies

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please 
immediately notify the sender by e-mail at the address shown.  This e-mail 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is 
intended even if addressed incorrectly.  Please delete it from your files 
if you are not the intended recipient.  Thank you for your compliance.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++