Hey Campbell,
Thanks for your reply, really appreciate it. With regards to the last year's result,its not a list, its just object of "One Row". I will explain with an example, say I have two objects
currentResult, and
previousResult.
When I generate the list
currentResult.generateList(), and loop through it, it gives me the following out:
studentID MathsResult
1 30
1 40
1 40
(You might be thinking why does studentID 1 have three maths result, well its just how the system works, students can have unlimited resits)
The above list is generated using a vector in the generateList() method
Now Object two which is "
previousResult" has only "ONE RECORD", so for example the following record:
studentID preMathsResult
1 50
I want to use the Second Object as a parameter to pass in the generateList() method, so generateList(student.lastYearDetails previousResult) and add to the vector list.
So if I have the following code in jsp: currentResult.generateList(previousResult) it gives me the following list:
studentID MathsResult CompareValue
1 30 20 this is previous result - current result
1 40 10 this is previous result - current result
1 40 10 this is previous result - current result
Hence to clearify, the previousResult object only has one Record. I hope I didn't get you confused? I am trying to compute the CompareValue and add it to the vector in the generateList() method.
Thanks,
Zub
[ March 18, 2008: Message edited by: zub kodi ]