I have a loop for 1 upto 10 cars, inside the loop I call a SpecialOffersCalc class which sets the price, tax, mainteance cost etc for each car
and displays them in the
JSP.
This for about 10 cars takes around 10 seconds to do the calculations. I thought in order to improve the speed of this page, I could have a loop and start a
thread for each calc so that calcs can be done simultaneously.
Now the calculations in SpecialOffersCalc which is implementing Runnable are done inside public void run() {} - The page executes in a second but all resuls are null. I am useing an instance of SpecialOffersCalc and getter methods to retrieve the values.
Any help in the right direction will be most appreciated.
- FK