可以不指定items,直接设置begin和end的具体数值 <select> <c:forEach begin="1" end="${totalPage }" var="i"> <option value=${i }>${i }</option