I am using Spring 3.0 framework
I have a Problem regarding thread and its result. My project has many controllers and their Methods.
I have created one thread which will be called in one of the Method of Controller and i want that its result should be added in model attribute because i want to show result in JSP.
Problem is that thought i am adding thread result in model attribute bit its result is null in JSP. because use is not using currently that controller.
Examlpe :
Spring Controller{
//mapping
String controllerMethod1(Model model){
}
//mapping
String controllerMethod2(Model model){
//thread will calling on this controller method
//new myThread
var result=new myThread.start();
model.addattr("res",result);
}
//mapping
String controllerMethod3(Model model){
}
//mapping
String controllerMethod4(Model model){
}
//mapping
String controllerMethod5(Model model){
}
}
There are many such controllers
In Each return JSP page of every controller,i have ${res}
to show threads return result
Please give me approriate solution and thank you.
I kow there is DefferedResult concept in Spring 3.2 But it is not in Spring 3.0. Please give me alternative solution like Deferedresult