src/main/webapp/WEB-INF/jspf/version-list.jspf

Wed, 06 Jan 2021 16:41:09 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 06 Jan 2021 16:41:09 +0100
changeset 182
53f0e2685ad5
parent 178
88207b860cba
child 214
69647ddb57f2
permissions
-rw-r--r--

single-use constant field can be inlined

<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<select name="${fieldname}" multiple>
    <c:forEach var="vselitem" items="${selectionList}">
        <option value="${vselitem.id}"
                <c:forEach var="v" items="${data}">
                    <c:if test="${v eq vselitem}">selected</c:if>
                </c:forEach>
                <c:if test="${vid eq vselitem.id}">selected</c:if>
        >
            <c:out value="${vselitem.name}" />
        </option>
    </c:forEach>
</select>

mercurial