You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by TroyGeek <tr...@gmail.com> on 2004/11/10 22:24:36 UTC

Logic tag to JSTL

How would I turn the following logic tag into a JSTL tag. Would it use
the core tags?

<logic:iterate id="yourProjects" name="projectList">
 	<bean:write name="yourProjects" property="projectId"/>
	<bean:write name="yourProjects" property="projectName"/>
</logic:iterate>

thank you!

Troyston Campano

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


Re: Logic tag to JSTL

Posted by Erik Weber <er...@mindspring.com>.
<c:forEach items='myCollection' var='currentItem'>
<c:out value="${currentItem.someProperty}"/>
</c:forEach>

Erik



TroyGeek wrote:

>How would I turn the following logic tag into a JSTL tag. Would it use
>the core tags?
>
><logic:iterate id="yourProjects" name="projectList">
> 	<bean:write name="yourProjects" property="projectId"/>
>	<bean:write name="yourProjects" property="projectName"/>
></logic:iterate>
>
>thank you!
>
>Troyston Campano
>
>---------------------------------------------------------------------
>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


RE: Logic tag to JSTL

Posted by Robert Taylor <rt...@mulework.com>.
<c:forEach var="yourProjects" items="${projectList}">
<c:out value="${yourProjects.projectId}"/>
<c:out value="${yourProjects.projectName}"/>
</c:forEach>

> -----Original Message-----
> From: TroyGeek [mailto:troygeek@gmail.com]
> Sent: Wednesday, November 10, 2004 4:25 PM
> To: Struts Users Mailing List
> Subject: Logic tag to JSTL
> 
> 
> How would I turn the following logic tag into a JSTL tag. Would it use
> the core tags?
> 
> <logic:iterate id="yourProjects" name="projectList">
>  	<bean:write name="yourProjects" property="projectId"/>
> 	<bean:write name="yourProjects" property="projectName"/>
> </logic:iterate>
> 
> thank you!
> 
> Troyston Campano
> 
> ---------------------------------------------------------------------
> 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