hi Ralf I am facing the same trouble. If u come to know the answer Please let me know as well Thanks in Advance Gary ----- Original Message ----- From: "Ralf Rapude" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 4:49 PM Subject: iterate over one collection two times in a jsp
> Hi, > with a logic:iterate tag I run over a Collection: > > <logic:present name="<%=Constants.SUBJECTS %>" scope="session" > > <logic:iterate id="subjects" name="<%=Constants.SUBJECTS %>"> > ...output > </logic:iterate> > </logic:present> > > It works well but if I try to iterate over the same collection after > changing the id (but still in the same jsp): > > <logic:present name="<%=Constants.SUBJECTS %>" scope="session" > > <logic:iterate id="subjectsmain" name="<%=Constants.SUBJECTS %>"> > ... output > </logic:iterate> > </logic:present> > > I got this Exception -> Cannot create iterator for this collection > > It works if I put my collection under a different name in the > session-scope, but in my Opinion there must be a more proper way to > handle the problem. > > Thanks a lot > Ralf > > > > > --------------------------------------------------------------------- > 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]