Yes that worked.

Thanks

Barry

----- Original Message ----- 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, October 10, 2003 12:02 PM
Subject: RE: Odd Behavior with <c:forEach


> Not status.index you need to add a var='foo' and do:
> <c:out value='${foo}'/>
> 
> Also, If you want 11-20 you should have begin as 11 not 10.
> 
> -Tim
> 
> -----Original Message-----
> From: Kris Schneider [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 10, 2003 2:54 PM
> To: Struts Users Mailing List
> Subject: Re: Odd Behavior with <c:forEach
> 
> 
> Try ${status.index}
> 
> Quoting Barry Volpe <[EMAIL PROTECTED]>:
> 
> > 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 <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to