There is a checkbox set in jstl:
<c:forEach var="type" items="${types}"> <label class="checkbox"><input value="${type}" type="checkbox" name="type">${type}</label> </c:forEach>
It is necessary with the help of the servlet and jstl in the answer to show what checkbox the user has marked when sending the form. That is, make checked those that the user noted.