How to insert a form with update, delete and insert interface dynamically including dynamic dropdown menu
Credits go to Joshau Forsyth and Amanda Cox:
It is important to create a form that is based on the content of the database. For example, the list of papers arleady in the database, or the list of program committee members in the database. Below, this is achived by JSTL.
Unfortunately, I don't know how to paste raw HTML code here, so you will have to view the source of this page to see the code. Let me know if you know how to include raw HTML code in this page so that the tags are not rendered as undesired. Thanks
(html comment removed:
Table in reviewList.jsp
ID | Date | Comments | Recommend | Paper ID | Member ID | ||
---|---|---|---|---|---|---|---|
${review.reportID } | // This is the cell for the recommendation checkbox | // This is the cell for the paperID dropdown | ${paper.paperID } ${paper.paperID } | // This is the cell for the memberIDdropdown${pcMember.memberID } ${pcMember.memberID } | // action is the param we check in servlet, to decide whether to insert/update/delete | // action is the param we check in servlet, to decide whether to insert/update/delete | |
(new) | ${paper.paperID } | ${pcMember.memberID } | // check action in servlet, to decide whether to insert/update/delete |