You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Tran <da...@hotmail.com> on 2003/03/30 06:39:43 UTC

Re: how to logic:iterate throu serveral collections at once ?

The answer is yes. Please check struts doc

However, by place your id and label into LabelValueBean. It will make your
code easier write
thru logic:iterate

-Dan
----- Original Message -----
From: "Slava_L" <lo...@esstu.ru>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, March 29, 2003 9:02 PM
Subject: how to logic:iterate throu serveral collections at once ?


Suppose i have ids[] array and labels[] array

I need to render link <a href="someaction.do?id=ids[i]"> label[i] </a>
is it possible to do with logic:iterate ?


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


Re: how to logic:iterate throu serveral collections at once ?

Posted by Dan Tran <da...@hotmail.com>.
logic:iterate exposes an collection's index, with can be use to access other
collection, right?

-D
----- Original Message -----
From: "Slava_L" <lo...@esstu.ru>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, March 29, 2003 10:15 PM
Subject: Re: how to logic:iterate throu serveral collections at once ?


> Struts doc says that only one object can be iterated inside on
logic:iterate
> ----- Original Message -----
> From: "Dan Tran" <da...@hotmail.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Sunday, March 30, 2003 12:39 PM
> Subject: Re: how to logic:iterate throu serveral collections at once ?
>
>
> > The answer is yes. Please check struts doc
> >
> > However, by place your id and label into LabelValueBean. It will make
your
> > code easier write
> > thru logic:iterate
> >
> > -Dan
> > ----- Original Message -----
> > From: "Slava_L" <lo...@esstu.ru>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Saturday, March 29, 2003 9:02 PM
> > Subject: how to logic:iterate throu serveral collections at once ?
> >
> >
> > Suppose i have ids[] array and labels[] array
> >
> > I need to render link <a href="someaction.do?id=ids[i]"> label[i] </a>
> > is it possible to do with logic:iterate ?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

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


Re: how to logic:iterate throu serveral collections at once ?

Posted by Slava_L <lo...@esstu.ru>.
Struts doc says that only one object can be iterated inside on logic:iterate
----- Original Message -----
From: "Dan Tran" <da...@hotmail.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 12:39 PM
Subject: Re: how to logic:iterate throu serveral collections at once ?


> The answer is yes. Please check struts doc
>
> However, by place your id and label into LabelValueBean. It will make your
> code easier write
> thru logic:iterate
>
> -Dan
> ----- Original Message -----
> From: "Slava_L" <lo...@esstu.ru>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Saturday, March 29, 2003 9:02 PM
> Subject: how to logic:iterate throu serveral collections at once ?
>
>
> Suppose i have ids[] array and labels[] array
>
> I need to render link <a href="someaction.do?id=ids[i]"> label[i] </a>
> is it possible to do with logic:iterate ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


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