You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Barry Volpe <st...@childrencare.com> on 2003/10/10 20:44:20 UTC

Odd Behavior with
This creates a menu of 1 - 10

 </html-el:select>   
      <html-el:option value="year">year</html-el:option>         
    <c:forEach begin="1" end="10" varStatus="status">
     <html-el:option value="${status.count}">
     <c:out value="${status.count}" />
     </html-el:option>
      </c:forEach>
      </html-el:select> 

This creates a menu of 1-11

 </html-el:select>   
   <html-el:select property="startyear" size="1">          
     <c:forEach begin="10" end="20" varStatus="status">
      <html-el:option value="${status.count}">
       <c:out value="${status.count}" />
       </html-el:option>
       </c:forEach>
        </html-el:select> 

Why doesn't this create  a menu of 10-20??

Barry

Re: Odd Behavior with Posted by Kris Schneider <kr...@dotech.com>.
Try ${status.index}

Quoting Barry Volpe <st...@childrencare.com>:

> This creates a menu of 1 - 10
> 
>  </html-el:select>   
>       <html-el:option value="year">year</html-el:option>         
>     <c:forEach begin="1" end="10" varStatus="status">
>      <html-el:option value="${status.count}">
>      <c:out value="${status.count}" />
>      </html-el:option>
>       </c:forEach>
>       </html-el:select> 
> 
> This creates a menu of 1-11
> 
>  </html-el:select>   
>    <html-el:select property="startyear" size="1">          
>      <c:forEach begin="10" end="20" varStatus="status">
>       <html-el:option value="${status.count}">
>        <c:out value="${status.count}" />
>        </html-el:option>
>        </c:forEach>
>         </html-el:select> 
> 
> Why doesn't this create  a menu of 10-20??
> 
> Barry


-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org