title: Stop a thread executing in background and then return the result
body: <p>I call a java file that performs background operations. Due to a thread that is executing on the background (in another java file) I cannot return the result to the jsp page.  It is known that return and system.exit(0) cannot be used at the same time. Is there anyway to stop the thread in the visible java file and return the result. </p>