struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject RE: Iterate tag
Date Tue, 15 Jul 2003 00:34:48 GMT
What Servlet API version are you using?  If it's 2.3, you should consider
using the standard JSTL tags <c:forEach> and <c:out> instead of the
proprietary Struts counterparts.

David

--- Kevin J Citron <objectman@elp.rr.com> wrote:
> I'm fairly new to struts. So, if this sounds like an easy question.
> Bear with me.
> 
> Here is what I would like to able to to
> 
> use the iterate tag to iterate over a collection
> creating a link to another page for each item of the iteration.
> 
> something like this.
> 
> <ul>
> <logic:iterate id="productCategory" name="productCategoryThingy" 
> property="productCategories">
>  <li><html:link page= ></html:link></li>
> </logic:iterate>
> </ul>
> 
> what I'm missing comes after the page attribute in the <html:link> tag
> I can print out the items in the list using,
>  <bean:write name="productCategory" property="name"/>
> 
> 
> Any help would be greatly appreciated.
> 
> 
> 
> 
> -- 
> 
> Kevin J Citron
> Sr. Object Imagineer
> Optimized Objects, Inc.
> EL Paso, Texas 79930
> (915) 565-5777/566-2403
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Mime
View raw message