You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <gr...@yahoo.com> on 2003/07/15 02:34:48 UTC

RE: Iterate tag

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 <ob...@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


Re: Iterate tag

Posted by Kevin J Citron <ob...@elp.rr.com>.
Looks like 4.1.x is 2.3 compliant.

Kevin J Citron wrote:

> Thanks for the reply.
> I'm using JBoss 3.2.1 with Tomcat 4.1.24.
> I'll have to check if it's 2.3
> Is struts soon going to move to the JSTL stuff ???
>
>
>
> David Graham wrote:
>
>> 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 <ob...@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
>>
>>
>>  
>>
>

-- 

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


Re: Iterate tag

Posted by David Graham <gr...@yahoo.com>.
--- Kevin J Citron <ob...@elp.rr.com> wrote:
> Thanks for the reply.
> I'm using JBoss 3.2.1 with Tomcat 4.1.24.
> I'll have to check if it's 2.3
> Is struts soon going to move to the JSTL stuff ???

The Tomcat 4.x series implements the Servlet 2.3 API.  Struts will
continue to support its tags so it's not a matter of Struts moving to
JSTL, it's up to app developers.  I highly recommend the use of the
standard tags because they're easier, more powerful, and every Java web
developer will know them.

David

> 
> 
> 
> David Graham wrote:
> 
> >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 <ob...@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
> >
> >
> >  
> >
> 
> -- 
> 
> Kevin J Citron
> Sr. Object Imagineer
> Optimized Objects, Inc.
> EL Paso, Texas 79930
> (915) 565-5777/566-2403
> 
> 
> 


__________________________________
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


Re: Iterate tag

Posted by Kevin J Citron <ob...@elp.rr.com>.
Thanks for the reply.
I'm using JBoss 3.2.1 with Tomcat 4.1.24.
I'll have to check if it's 2.3
Is struts soon going to move to the JSTL stuff ???



David Graham wrote:

>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 <ob...@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
>
>
>  
>

-- 

Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-5777/566-2403