Hi Nani!

> Is there a way in struts <logic:iterate ... tag to be able wrap the
values
> coming out of a collection (ArrayList) on a JSP?
Afaik that's what it's for...

 
> Here is a sample of my JSP code which puts everything on the same
<td>:
> 
> <tr>
>         <logic:present name="results">
>          <logic:iterate id="myFormArrayListElement" name="results"
> property="formArrayList" type="String">
You don't need property I think: name="MyArrayList" should name the
ArrayList you want to get iterated, id="newBeanName" is the bean name to
access the single elements of the ArrayList:

<logic:iterate id="result" name=" myFormArrayListElement" type="String">

>           <td valign="top" colspan="2"><span class="normal">
>            <bean:write name="myFormArrayListElement"/></span>

<bean:write name="result"/></span>

>           </td>
>               </logic:iterate>
>         </logic:present>
>        </tr>
> 
> 
I think that should work. A look at the struts developer documentation
explains exactly how to use the struts-tags.

Fabian


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

Reply via email to