Avinash Gangadharan wrote:
I have 2 lists of Strings. How can I have 2 iterators run in parallel not
nested.
Can some one suggest a tag( JSTL ?? ) replacement for the scriptlets in the code below :
<%--first - lists of names--%> <bean:define id="names" name="names" type="java.util.List" scope="page" /> <% Iterator i = names.iterator(); %>
<%-- second - list of nicknames for the names --%>
<logic:iterate id="nickname" name="nicknames" >
<% String name = (String)i.next();
%> <tr>
<td><%=name%></td>
<td><bean:write name="nickname"/></td>
</tr>
</logic:iterate>
PS: Making a object with name and nicknames as props and passing a list of such objects is out of my scope due to constraints.
TIA Avinash
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]