I have simple java code for getting number of all persons added/saved in DB and +1 for adding new person like :
for(int i=1, i<= collection.size() + 1, i++){
<option value="<%=i>"/>"><%=i></option>
}
but Using JSTL I wanted to come up with :
<c:forEach items="${persons + 1}" var="person">
<option value="<c:out value="${person.personId}"/>">
<c:out value="${person.personId}"/>
</option>
</c:forEach>
but this ${persons + 1}
gives me error. please help me in this case.