hi, good day , i currently maintain on pure jsp pages(without even servlet), my problem is, i have generate a record table say it contains 3 records, and the records table data is actually from List by session.getAttribute("recordList"), which look like below
however, there have some fields which is editable, in this case, qty1 and qty2 are the field allow editable, my problem now is, after user edit, when he/she click on save button, what are the good idea to save these records into DB ?
limitation : it is pure jsp page, with no servlet but pojo or helper class is the only i can code
This a very standard pattern that you would can find lots of information on.
Basically, your form would be submitted to a servlet which would then delegate the actual database manipulation to (preferably UI-agnostic) business logic classes. Upon completion of the processing, the servlet forwards oe redirects to a JSP page to render the resulting view.