JSP is as follows :
Marks Details
Student Type : cboStudentType (combo box)
Student Name : cboStudentName (combo box)
Marks 1 : txtMar1 (text field)
Marks 2 : txtMar2 (text field)
Marks 3 : txtMar3 (text field)
Total : txtTotal(text field)
In above form , depending on selected student type, stident names will be fetched from the data table. After entering marks1, marks2 and marks3, Total should be calculated. Whenever total will be displayed, selected student type, student name and all marks should be restored back in the page.
Please do tell me how to achieve this?