struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <Abdullah.Jib...@aeroxchange.com>
Subject RE: <html:options> tag usage?
Date Tue, 28 Jun 2005 18:55:37 GMT
Same result... I'm aware of the options tag but in case the user wants more flexibility they
have this option :) After all he didn't ask about LabelValueBean either.

-----Original Message-----
From: Wendy Smoak [mailto:java@wendysmoak.com]
Sent: Tuesday, June 28, 2005 1:38 PM
To: Struts Users Mailing List
Subject: Re: <html:options> tag usage?


Abdullah Jibaly wrote:
> Using Servlet/JSP 2.4/2.0 and JSTL something like this should work:
> <jsp:useBean id="myUtilBean" class="MyUtilBean"/>
> <html:select property="...">
>    <c:forEach items="${myUtilBean.c}" var="row">
>       <html:option value="${row.name}">${row.value}</html:option>
>    </c:forEach>
> </html:select>

But... he asked about <html:options> (plural, not <html:option>.)  The whole
point is that if you have a Collection, you don't have to do the iteration,
the tag will do it for you.  Dave and Brad are on the right track.

-- 
Wendy Smoak



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


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


Mime
View raw message