msg = "Already active.";
else {
// It's tricky to start another Thread from a Servlet. Here
// the Resin ThreadPool class is used. ThreadPool will interrupt a
// thread and stop it if it runs for too long.
ThreadTask threadTask = new ThreadTask() {
public void run()
{
task.run();
}
};