My application stores information on courses, companies, students and results. Students can be associated to one or more companies.
On the update student page the user has the option to associate or disconsolate companies with a student.
So far I have the full list of companies listed on the update student page along with the correct the Boolean values (associated or not associated).
Also the user and associate or disassociate companies by checking or unchecking a tick box for each of the companies.
The problem I am having is in the Update Student Action, I am not able to read the company details and the boolean values from the table on the update student page.
I do not know how to save this student - company relationship in the Student Form, I have tried saving the values in the session and reading them from there but updates I make on the update student page are not picked up. Also I cannot figure out how to read directly the values on the update student jsp to the update student action.
HELP!!! I am out of ideas!
I hope my explanation is clear.
Here is a code snippet from the update student JSP. I am able to populate the table below from the DB using values I have read in the Get Student Action.