I have a table in jsp which have 3 columns- num1, num2, sum
I want to display the sum automatically for each of the row. Above code works only for the first row, but not for the other rows. I am not sure how to achieve that. Thanks in advance
Welcome to the JavaRanch.
You have hard coded the names of the fields in the function. You need a way to tell which row you are on and which fields you are using. Any ideas?
I'm going to move this to the javascript forum since this isn't really a Struts problem.